note 124340 added to ini.sect.safe-mode

From: Date: Sat, 26 Oct 2019 23:26:50 +0000
Subject: note 124340 added to ini.sect.safe-mode
Groups: php.notes 
Request: Send a blank email to php-notes+get-212770@lists.php.net to get a copy of this message
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 ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.168 (proxied: 196.157.70.118) ---- Manual Page -- http://php.net/manual/en/ini.sect.safe-mode.php Edit -- https://master.php.net/note/edit/124340 Del: integrated -- https://master.php.net/note/delete/124340/integrated Del: useless -- https://master.php.net/note/delete/124340/useless Del: bad code -- https://master.php.net/note/delete/124340/bad+code Del: spam -- https://master.php.net/note/delete/124340/spam Del: non-english -- https://master.php.net/note/delete/124340/non-english Del: in docs -- https://master.php.net/note/delete/124340/in+docs Del: other reasons-- https://master.php.net/note/delete/124340 Reject -- https://master.php.net/note/reject/124340 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#212770) next »