Skip to content

Prevent Overwriting PHP Settings By An Application

Assumptive you have a apache webserver and you need to deal with an old application that fills up your log file with many strict entries. You need to prevent your "error_reporting" level to get overwritten.
You can achieve this by adding the following line in your apache httpd.conf.

php_admin_value error_reporting 22517

It is important you are using "php_admin_value" (or "php_admin_flag" when needed) instead of "php_value" to set the value. If you use "php_admin_value", you prevent the value gets overwritten by the ".htaccess" or a "ini_set()" call from your application.

Want to know more? Here are some links fitting to this topic.

Translate to de es fr it pt ja


No Trackbacks


Display comments as Linear | Threaded

No comments

The author does not allow comments to this entry

Add Comment

Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.

Markdown format allowed
Form options