note 124338 deleted from ini.sect.safe-mode by cmb

From: Date: Sun, 27 Oct 2019 08:48:38 +0000
Subject: note 124338 deleted from ini.sect.safe-mode by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212811@lists.php.net to get a copy of this message
Note Submitter: holdon500 at yahoo dot com ---- bad/missing config values for the Plesk server running the whole thing. I just followed the directions here: https://www.extraprog.com/ You can configure PHP to have a separate error log file for each VirtualHost definition. The trick is knowing exactly how to set it up, because you can’t touch the configuration directly without breaking Plesk. Every domain name on your (dv) has its own directory in /var/www/vhosts. A typical directory has the following top level directories: cgi-bin/ conf/ error_docs/ httpdocs/ httpsdocs/ ...and so on You’ll want to create a vhost.conf file in the domain directory’s conf/ folder with the following lines: php_value error_log /path/to/error_log php_flag display_errors off php_value error_reporting 6143 php_flag log_errors on Change the first value to match your actual installation (I used /tmp/phperrors.log). After you’re done editing the vhost.conf file, test the configuration from the console with: apachectl configtest …or if you don’t have apachectl (as Plesk 8.6 doesn’t seem to)… /etc/init.d/httpd configtest And finally tell Plesk that you’ve made this change. /usr/local/psa/admin/bin/websrvmng -a

« previous php.notes (#212811) next »