Apache
Is there any way to block Bots (Spam Bots ) from accessing the website ?
If you access and study your web server logs, you will find that more than 50% of the traffic is taken by Bots , Both search engine and Spam Bots.  Recently we have tried to build a system where we can analyze the data of the website, its seems there is big difference between Google Analytic and [...]
A step by step guide to Performance Tuning for Apache Tomcat
Once you have Tomcat up and running, you will likely want to do some performance tuning so that it serves requests more efficiently on your computer. In this chapter, we give you some ideas on performance tuning the underlying Java runtime and the Tomcat server itself. The art of tuning a server is a complex [...]
How to enable logging in Apache WebServer
For httpd server logging, W3C logging format is preferred, with the agent and referrer extensions in separate files. To enable logging, set the CustomLog fields in the httpd.conf files as follows: LogFormat “%h %l %u %t \”%r\” %s %b” common LogFormat “%{Referer}i-> %U” referer LogFormat “%{User-agent}I” agent CustomLog /path/to/audit/logs/access_log common CustomLog /path/to/audit/logs/referer_log referer CustomLog /path/to/audit/logs/agent_log [...]
How to Find the instances of Apache in your process list under Linux
You cna find the instances of apache in the processlist by using  top command or you can gerp the httpd threds by using the following command ps -ax | grep httpd Tools such as top and ps may be used to examine your process list and determine the size of processes. The server-status handler, provided [...]
How to Install a Generic Third-Party Module in Apache
You have downloaded a third-party module that  you want to install it. Move to the directory where the module’s source file was unpacked, and then: % /path/to/apache/ bin/apxs -cia module.c In the case of a third-party module that consists of a single .c file, there is a good chance that it can be built and [...]
How to Use Apache Module mod_expires
This module controls the setting of the Expires HTTP header and the max-age directive of the Cache-Control HTTP header in server responses. The expiration date can set to be relative to either the time the source file was last modified, or to the time of the client access. These HTTP headers are an instruction to the client about the [...]
Monitoring Apache with Apache Module mod_status
The Status module allows a server administrator to find out how well their server is performing. A HTML page is presented that gives the current server statistics in an easily readable form. If required this page can be made to automatically refresh (given a compatible browser). Another page gives a simple machine-readable list of the current [...]
Apache Module mod_suexec – Apache HTTP Server
This module, in combination with the suexec support program allows CGI scripts to run as a specified user and Group. The SuexecUserGroup directive allows you to specify a user and group for CGI programs to run as. Non-CGI requests are still processes with the user specified in theUser directive. This directive replaces the Apache 1.3 configuration of using the User [...]
httpd: Syntax error on line 142 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server
httpd: Syntax error on line 142 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied to solve the above error just type the following command chcon -t texrel_shlib_t /usr/local/apache/modules/libphp5.so
How to build PHP with Apache 1.3.
This is actually quite easy. Follow these steps carefully: Grab the latest Apache 1.3 distribution from » http://httpd.apache.org/download.cgi. Ungzip and untar it somewhere, for example /usr/local/src/apache-1.3. Compile PHP by first running ./configure –with-apache=/<path>/apache-1.3 (substitute <path> for the actual path to your apache-1.3 directory). Type make followed by make install to build PHP and copy the necessary files to the Apache [...]
Is it possible to use Apache content negotiation (MultiViews option) with PHP
If links to PHP files include extension, everything works perfect. This FAQ is only for the case when links to PHP files don’t include extension and you want to use content negotiation to choose PHP files from URL with no extension. In this case, replace the line AddType application/x-httpd-php .php with: AddHandler php5-script php AddType [...]
Apache2 with a threaded MPM in a production environment
PHP is glue. It is the glue used to build cool web applications by sticking dozens of 3rd-party libraries together and making it all appear as one coherent entity through an intuitive and easy to learn language interface. The flexibility and power of PHP relies on the stability and robustness of the underlying platform. It [...]
checking whether to enable mod_deflate… configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
checking whether to enable mod_deflate… configure: error: mod_deflate has been requested but can not be built due to prerequisite failures This error comes because you have not instaaled zlib-devel to rectify this error message type the following command to install zlib-devel Yum install zlib-devel
How to Install SSL Certificate under Apache webserver
This Article is given in digicert.com for the installation of there certificates Copy the Certificate files to your server.Download your Intermediate (DigiCertCA.crt) and Primary Certificate (your_domain_name.crt) files from your Customer Area, then copy them to the directory on your server where you will keep your certificate and key files. Make them readable by root only. [...]
How can I create an SSL server which accepts strong encryption only
The following enables only the seven strongest ciphers: httpd.conf SSLProtocol all SSLCipherSuite HIGH:MEDIUM
