Linux Apache Installation

Source: Internet
Author: User

when installing Apache httpd, you will often encounter:
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 web that guide how to download these dependent files after installation, this article
package All of these dependent files in http://download.csdn.net/detail/kkdelta/4424852.
Place all of 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 Installing Pcre
#unzip-o pcre-8.30.zip
#cd pcre-8.30
#./configure--prefix=/usr/local/pcre
#make
#make Install
4 Installing 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-- With-pcre=/usr/local/pcre
#make
#make Install
5 Launch 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/

Linux Apache 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.