Skip to content
Advertisement

Tag: debian

How to allow user www-data use sudo commands without password

I want to allow run specify command on my website, through PHP exec() function, so i found the way, to add www-data in sudoers.d files to allow run specify commands without asking password. I tried next things: check where is program catalogue whereis hashcat -> hashcat: /usr/bin/hashcat Add a new file to sudo visudo /etc/sudoers.d/www-data and add next line www-data

Can not install php7.4-soap on Debian 9

I am using Debian 9, and I recently upgraded PHP from 5.6 to 7.4. I was hit by the Class ‘SoapClient’ not found error when running an old PHP script, which worked very well under PHP 5.6. The phpinfo() lists “SOAP” module but it doesn’t have a dedicated “soap” section with “Soap Client” listed (as mentioned here). I believe the

Debian – Apache MySQL PDO issue but all logs are empty

I’m trying to get a project set up and working but I have some issues with my PDO connection. No big deal, however, it doesn’t matter what logs I’m trying to find – they are all empty. within the php file itself, I have ini_set(‘error_log’, ‘/tmp/php_error.php’);. within my sites-enabled config I have the error log defined under ${APACHE_LOG_DIR}/error-domain.log both files

How to Turn off Caching of PHP Pages on Server and Browser?

I’m not sure where the caching of php pages is coming from. So far I’ve disabled caching in; Chrome’s Developer Tools> Network > Disable cache; Debian’s optphp73etcphp73.ini with; I’ve added to the end of my server entry; I’ve got this header at the top of the php script; But I still can’t figure out Where the caching is coming from.

PHP 7.2 fails to start when pm.max_children > 506

on Debian 10 when I set pm.max_children = 507 or more and try to start php7.2-fpm I get following error: When I set pm.max_children = 506 or less all is working fine. My www.pool config: My server config: 10-core CPU 256 GB RAM What can cause that? Is there some hard limit on how much php-fpm children can be started?

Error when saving data on a specific date and time

I have a server with Debian 10,Apache/2.4.38, MySQLi, mongodb and Php. The server is running a custom PHP program which allows users to upload their measurements (in .csv files) which are then stored in mongodb. The uploaded .csv files must comply with a predetermined format in order to be uploaded, like so: The timestamp must be set every 15 minutes

php7 fpm sock file ownership on service restart

I have just installed PHP7 https://github.com/kasparsd/php-7-debian Everything works except each time I do service php7-fpm restart I need manually to set ownership on file /run/php7-fpm.sock to www-data After setting the permissions everything works.. But how to avoid this on every restart? The ownership is always root after restart php-fpm.ini Answer Ownership of the file socket is determined by the listen.owner

Mysqli not installed?

I get the following error: Fatal error: Class ‘mysqli’ not found in my php script I have php5.3.3-7 installed and I get this when I run apt-cache show php5-mysql There is nothing about mysql at all in php info. How do I find the extention and do I have to istall it? There are many references to mysqli in my

Advertisement