Another "error reporting not working in PHP" post

2.3k views Asked by At

All I get is a blank page. And, yes, I did read the dozens of similar questions asked.

I want this change to apply to all my scripts, so I went into php.ini. According to phpinfo(), it is located in /etc. So, I went there, and turned error_reporting = E_ALL and error_display = On. Still blank.

Its very frustrating, so I came here. What am I doing wrong? It is PHP5, Apache 2.2.17.

3

There are 3 answers

0
Steven Detweiler On BEST ANSWER

Did you restart apache when you changed php.ini? – Ryan 19 hours ago

That worked! Thanks!

0
Dr.Molle On

The ini-setting is called display_errors not error_display

0
Gui Lui On

Additionally when using php and having multiple sites on the same host, you can copy the php.ini file into your sub sites and modify it specifically for those sites.

Many times it will not default to the root "public_html" php.ini file and you will need to copy this file in.