Web Server

[Fixed] Name or service not known: mod_unique_id: unable to find IPv4 address of

I completed a new cPanel server setup and found that Apache service is not running. On trying to restart, it failed and the Apache error logs showed following error "[alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "server.example.com" Configuration Failed" I checked the Apache configuration  syntax file by using command /etc/init.d/httpd configtest which was …

Read More »

Modsecurity rule execution error - PCRE limits exceeded

Linux logo

If you are getting following mod_security error in the Apache error logs [Mon Jun 11 16:54:50 2011] [error] [client 171.235.170.226] ModSecurity: Rule 8269d10 [id "-"][file "/usr/local/apache/conf/modsec2.user.conf"][line "763"] - Execution error - PCRE limits exceeded (-8): (null). [hostname "www.example.com"] [uri "/wp-content/themes/daily/timthumb.php"] [unique_id "T9YUytXlXKcADxXq-WUAAAAg"] then to get rid of the error you will have to make some server side changes as the …

Read More »

[How To] Disable mod security on a Linux Server

apache logo

Here is a quick guide about mod_security and how to disable mod_security in various scenarios. Please note that you will require shell access with root user to perform the below steps. The mod_security has two versions and rules for each of them are different. Hence, before adding rule one should be sure about mod_security version. How to find mod_security version? …

Read More »

Unable to include potential exec [ Fixed ]

The Apache version 2.2.3 will not allow to include executable by default because "Options -IncludesNoExec" directive is set to secure  the web server. The CGI includes can be enable by editing .htaccess under your account and updating with the following line. Options +Includes +ExecCGI   If any feedback, queries are always welcome!

Read More »

[How To] Change or update Apache time zone

apache logo

If websites are hosted on shared servers and timezone is different, one may demand to change the timezone for his/her website. In this case, there is no need to change the timezone on the server. We can change the timezone for the particular website using following methods. The Apache time zone can be updated in two ways: 1) Using PHP …

Read More »