-->

Sunday, January 11, 2015

Adding a new module in Apache Server

Adding and Compiling a new module in Apache Server


The following steps are required for adding up a new module (DSO) to the Apache Web Server:
If you have your own module, you can add it to the "httpd.conf" file, so that it is compiled in and loaded as a DSO (Dynamic Shared Objects).
For the successful compilation of the shared module, please check the installation of the "apache-devel" package because it installs the include files, the header files and the Apache eXtenSion (APXS) support tools.

Configuring Apache to auto-start on Reboot

For configuring Apache service to autostart in case of a server restart follow the steps below:-


#chkconfig --list httpd
#chkconfig --add httpd
#chkconfig --list httpd
output:-
httpd             0:off 1:off 2:off 3:off 4:off 5:off 6:off
#chkconfig httpd on
#chkconfig --list httpd
output:-
httpd             0:off 1:off 2:on  3:on  4:on  5:on  6:off

Setting GID in Linux

For Setting up of GID on the directory in Linux use following command:-

find . -type d -exec chmod 2775 {} \;

. :- directory under which you want to set the GID
-type d :- specifies the type i.e. to find only directory
-type f :- specifies the type i.e. to find only files