Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have and

php.ini is set to display_errors=off

but for which is a testing site, I want display_errors=on

how do I do that?

share|improve this question
up vote 1 down vote accepted

I found the solution

Add this to the .htaccess file in the root of the subdomain

php_flag display_errors on
share|improve this answer

This really comes down to your specific php.ini setup. You may be able to, depending upon your configuration, to inject into the .htaccess and/or into a local site php.ini file the settings you want to show.

If your using cPanel (may work with others as well) try the following:

# cp -pv /usr/local/lib/php.ini /home/username/public_html/php.ini
# chown -v username:username /home/username/public_html/php.ini

Keep in mind if safe mode is enabled - than this will not work. PHP link:

share|improve this answer
I don't have cPanel – jax Dec 9 '10 at 9:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.