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

howto - regex - apache php

Currently, there is no howto. But by the time of running into and solving problems with regex, a view pages helped my a lot. So here they are.

regex php german by phpwcms-howto.de regex howto german by danielfett.de regex howto english by zytrax.com regex in apache mod_rewrite by apache.org regex online tool by gskinner.com regex online test by regexplanet.com

Translate to de es fr it pt ja

howto - Apache Tomcat Configuration

All the needed configuration parameters you can/have to to are linked below. In this entry i want to point out the use of setenv.sh.

With setenv.sh you don't have to edit the default startup script from the tomcat. This means you also can backup/store your settings on a well know place and then just create a link into the directory where your catalina.sh file is placed. The catalina.sh script itself looks for a setenv.sh and reads it. Everything that is configured inside the setenv.sh script overwrites the default settings inside the catalina.sh.

links: tomcate.apache.org how to run a tomcat how to configurate a tomcate

Translate to de es fr it pt ja