The first time the compilation, not compiled into this module to go? How to do it, can be compiled by extension.
Download the same version of the Apache source code, note that must be the same version, or the compilation will not succeed.
to find the source package, compile the following steps:
cd/usr/local/src/httpd-2.2.24/modules/generators/
/usr/local/apache2/bin/apxs-i-a-c-n mod_status mod_status.c
after the compilation is complete, the view in vim/usr/local/apache2/conf/httpd.conf has automatically added a line:
LoadModule mod_status_module modules/mod_status.so
However, using the command to view the load module times is wrong:
/usr/local/apache2/bin/httpd-m
httpd:syntax error on line of/usr/local/apache2/conf/httpd.conf:Can ' t locate API module structure ' Mod_status_module ' in file/usr/local/apache2/modules/mod_status.so:/usr/local/ apache2/modules/mod_status.so:undefined Symbol:mod_status_module
this is because the module name we are using is inappropriate,not mod_status_module, but Status_module .
So, you need to change httpd.conf insteadLoadModule status_module modules/mod_status.so
This article from the "Flying Small GUI" blog, reproduced please contact the author!
Add a new module to the already installed Apache