Linux Apache installation

Source: Internet
Author: User

When installing Apache httpd, you will often encounter the following problems:
Configure: Error: Apr not found. Please read the documentation.
Configure: Error: Apr-util not found. Please read the documentation.
Configure: Error: PCRE-config for libpcre not found. PCRE is required and available

There are also articles on the Internet to guide you how to download and install these dependent files. This article
Package these dependent files in the http://download.csdn.net/detail/kkdelta/4424852.
Put all the following files in the/root/wkr directory
Apr-1.4.6.tar.gz
Apr-util-1.4.1.tar.gz
Httpd-2.4.2.tar.gz
Pcre-8.30.zip

1. Install APR:
Tar-zxvf apr-1.4.6.tar.gz
CD apr-1.4.6
./Configure
Make
Make install
2, install APR-UTIL
# Tar-zxvf apr-util-1.4.1.tar.gz
# Cd apr-util-1.4.1
#./Configure -- prefix =/usr/local/APR-util -- With-Apr =/usr/local/APR
# Make
# Make install
3. Install PCRE
# Unzip-O pcre-8.30.zip
# Cd pcre-8.30
#./Configure -- prefix =/usr/local/PCRE
# Make
# Make install
4. install Apache
Tar-xzvf httpd-2.4.2.tar.gz
CD httpd-2.4.2
. /Configure -- prefix =/usr/local/Apache/-- With-Apr =/usr/local/APR -- With-Apr-util =/usr/local/APR-util -- -PCRE =/usr/local/PCRE
# Make
# Make install
5. Start Apache
CD/usr/local/Apache/bin
./Apachectl start
If you need a new version:

Http://httpd.apache.org/download.cgi

Http://apr.apache.org/download.cgi

Http://sourceforge.net/projects/pcre/

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.