Linux under extended Apache module

Source: Internet
Author: User

1, about compiling Apache

In fact, when installing Apache, it is best to compile the commonly used modules, so as to save later to add

Common Compile items:

./configure--prefix=<path>--enable-mods-shared=all--enable-so--enable-rewrite

The following do not necessarily have to be specified, but some libraries are dependent packages and must be installed

--with-apr=<path>--with-apr-util=<paht>--with-pcre=<path>

2. Add Apache module

Sometimes in order to install to be able to complete a one-time, not error, only in the installation of the first not to compile some packages, and then later on as necessary to add, that is the following method!

The first modules to be added are: Rewrite module

In the httpd source directory, switch to: Modules/mappers directory

Then execute the following command as follows:

/usr/local/apache2/bin/apxs-c mod_rewrite.c

/usr/local/apache2/bin/apxs-i-a-n mod_rewrite mod_rewrite.la

If you do not have errors, you will be prompted:

Libraries has been installed in:
/usr/local/apache2/modules


Then add the httpd.conf file:

LoadModule Rewrite_module modules/mod_rewrite.so


Linux under extended Apache module

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.