Apache Source package Installation process record

Source: Internet
Author: User

1. Download Apache Source Package

Http://www.apache.org/apache official website, contains very much software to find Apache software http://httpd.apache.org/selected to download the source package copy downloaded urlhttp:// mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.25.tar.bz2 Enter Linux/usr/local/src wget/http mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.25.tar.bz2 wait for download to complete unzip TAR-JXF httpd-2.4.25.tar.bz2 move to installation directory MV Httpd-2.4.25/usr/local/apache2 2. Install Apache View Source package Install File
    1. $ ./ configure -- prefix = prefix
    2.      $ make
    3.      $ make install
    4.      $ PREFIX / bin / apachectl start
Specifies the installation directory/usr/local/apache2/apache./configure--prefix=/usr/local/apache2/apache Installation Environment Check result error cannot find Apr Apr is a library that Apache needs to run 3. Install Apr download is also installed on the Apache website http://apr.apache.org//usr/local/apache2 4. Install Apr-utilInstall Apache againError cannot find apr-util with Apr download is a page installed when you specify the installation directory and the APR installation directory./configure--prefix=/usr/local/apache2/apr-util--with-apr=/ USR/LOCAL/APACHE2/APR Note: Apr-util installation is successful. The first time I did not install the success, when installing Apache error cannot find Lib libaprutil-1.la in the Apr-util installation directory did not find the file, deleted the re-installed side apr-util, only to see the file 5. Install Pcre Install Apache, error cannot find Pcre-configrpm-q Pcre can see already installed pcre Ah, actually installed here is a binary package, not a development package, yum-y install pcre-devel.x86_64 installed PCR E Development Kit 6. Final installation of Apache./configure--prefix=/usr/local/apache2/apache--with-apr=/usr/local/apache2/apr-1.5.2-- with-apr-util=/usr/local/apache2/apr-util-1.5.4 Make make install view/usr/local/apache2/apache below, the installation files have been generated 7. Launch Apache./usr/local/apache2/apache/bin/apachectl Start Open your browser 127.0.0.1 to see it works! or perform netstat-tln see 80 port Start listening, indicating the installation is successful below can be configured Apache summary: Seemingly simple source package installation process, tossing for 2 hours, it is clear that everything must not above his business, did not know 

Apache Source package installation process record

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.