PDA

View Full Version : How to set DisplayErrors for PHP on specific domain?


keff
13th June 2008, 07:09 AM
Hi,

It is possible to set DisplayErrors in PHP for specific domain?
How can I do this ?

breun
13th June 2008, 09:36 AM
Set php_flag display_errors 1 in a .htaccess file in the httpdocs folder or set the following in the domain's vhost.conf (see Including Directives into Web Server Configuration File (http://download1.swsoft.com/Plesk/Plesk8.4/Doc/en-US/plesk-8.4-unix-administrators-guide/index.htm?fileName=17359.htm)):

<Directory /var/www/vhosts/example.com/httpdocs>
php_admin_flag display_errors 1
</Directory>

keff
16th June 2008, 03:21 AM
Thanks For the reply :)

keff
16th June 2008, 04:33 AM
Hi,
I've added directive into the .htaccess file but only error 500 Shows. In logs I've got:

.htaccess: <Directory not allowed here

What should I do ??

breun
16th June 2008, 05:07 AM
Read my post again.

keff
16th June 2008, 05:18 AM
Ok sorry, I've read again and set in vhost.conf.

Thanks again