Add a new module to the already installed Apache

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.