Configure Apache in Ubuntu

Source: Internet
Author: User
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

Related Article

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.