Empulse Group a collection of notes from a sys admin, musician, and father


Enabling PHP error reporting in Plesk

On a Linux server that is running the Plesk control panel, you can create a vhost.conf file in the domain's conf directory. Use something like the following.

<Directory /home/httpd/vhosts/domain.com/httpdocs>
php_admin_flag engine On
php_admin_flag  display_errors On
php_value error_reporting 2047

- OR -

<Directory /home/httpd/vhosts/domain.com/httpdocs>
php_admin_flag   engine on
php_admin_flag   display_errors    1
php_admin_value   error_reporting "E_ALL & ~E_NOTICE"

Don't forget to run websrvmng.

[root@www ~]# /usr/local/psa/admin/bin/websrvmng -u --vhost-name=domain.com
Filed under: Linux, Plesk Leave a comment
Comments (0) Trackbacks (0)

No comments yet.

Leave a comment

No trackbacks yet.