System Environment: Ubuntu10.10 (linux-kernel2.6.35-22) Installation version: httpd-2.4.2.tar.gz (Official Site: Apachehttpd) Installation Steps: 1← download httpddownload httpd-2.4.2.tar.gz (Official Site: Apachehttpd) 2. Unzip the httpdtar-zxvfhttpd-2.4.2
System Environment:Ubuntu 10.10 (linux-kernel 2.6.35-22)
Installation version:Httpd-2.4.2.tar.gz (Official Website:APache httpd)
Installation steps:
1. Download httpd
Download httpd-2.4.2.tar.gz(Official Website:APache httpd)
2. Decompress httpd
Tar-zxvf httpd-2.4.2.tar.gz
3. Install httpd
Enter the decompressed directory
Cd httpd-2.4.2
Create/Opt/Httpd-2.4.2-server
Sudo mkdir-p/Opt/Httpd-2.4.2-server
Install to the specified directory/opt/httpd-2.4.2-server
Sudo./configure -- prefix =/opt/Httpd-2.4.2-server/-- enable-module = so
The error APR not found is returned!
In the installation of Apache process, [Linux community http://www.linuxidc.com] in turn encountered errors and solutions are as follows:
Question 1:APR not found
A. Download apr-1.4.6.tar.gz (official website)
B. Decompress apr
Tar-zxvf apr-1.4.6.tar.gz
Cd apr-1.4.6
C. Install apr
Sudo mkdir-p/opt/Apr
Sudo./configure -- prefix =/Opt/Apr
Sudo make
Sudo make install
Question 2:APR-util not found
A. Download apr-util-1.4.1.tar.gz (official website)
B. Decompress apr-util
Tar-zxvf apr-util-1.4.1.tar.gz
Cd apr-util-1.4.1
C. Install apr
Sudo mkdir-p/opt/apr-util
Sudo./configure -- prefix =/Opt/apr-util -- With-apr=/Opt/Apr
Sudo make
Sudo make install
Question 3:Pcre-config for libpcre not found
A. Download pcre-8.31.tar.gz (official website)
B. decompress the pcre
Tar-zxvf pcre-8.31.tar.gz
Cd pcre-8.31
C. Install apr
Sudo mkdir-p/opt/pcre
Sudo./configure -- prefix =/Opt/pcre
Sudo make
Sudo make install
Question 4:Clear compilation and re-compile
Sudo make clean; make
Sudo make clean install
After completing the above preparations, install httpd again(Parameters included):
Sudo./configure -- prefix =/opt/Httpd-2.4.2-server/-- enable-module = all-- With-apr =/Opt/Apr -- With-apr-util =/Opt/Apr-util-- With-pcre =/Opt/Pcre
Sudo make
Sudo make install