Linux httpd installation

Source: Internet
Author: User

2. Unzip
# tar zxf httpd-2.2.4.tar.gz
# CD httpd-2.2.4

3. Install Apache dependency Pack Apr and Apr-util, they are all in the Srclib directory

3.1 Installing Apr
# CD SRCLIB/APR
#./configure--PREFIX=/USR/LOCAL/APR
# make
# make Install

3.2 Installing Apr-util
# CD: /apr-util
#./configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR
# make
# make Install

4. Installing Pcre

#cd pcre-8.10
#./configure--prefix=/usr/local/pcre
#make
#make install

5. Installing httpd

# CD: /.. /
#./configure--prefix=/usr/local/httpd--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util -- With-pcre=/usr/local/pcre --enable-so--enable-rewrite
# make
# make Install

--ENABLE-SO Support DSO mode (dynamic module loading mode)
--enable-rewrite support Rewrite (address redirection)

Start the service

/usr/local/apache2/bin/apachectl start Apache

/usr/local/apache2/bin/apachectl stop stop Apache

Add a service to auto start

echo "/usr/local/apache2/bin/apachectl start" >>/etc/rc.d/rc.local add self-start

http://192.168.1.104/

If the page appears as follows:
It works!

Congratulations, Apache installation was successful ~


Linux httpd installation

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.