Wednesday, September 3, 2008

Turn Off PHP Error Reporting Unix

This one is pretty easy to find out on the web, but I thought I would throw it up there with some other keywords. Here is how you Turn off php error reporting in Unix BSD tutorial.

1 Login as root

2 vi /usr/local/lib/php.ini (or wherever your php.ini file is located)

3 find the error_reporting setting by typing /error_reporting (note arrow down to the error_reporting line that does NOT start with a semicolon!!!!)

4) to disable, insert a semicolon in front of the error_reporting line to comment out.

5) restart apache with /usr/local/apache2/bin/apachectl restart

To reenable php error reporting, remove the semicolon.

No comments: