note 124338 deleted from ini.sect.safe-mode by cmb
| From: | cmb@php.net | 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