Have not written a blog for a long time, today, the impulse to record the source of the installation of httpd process, if there is a mistake hope everyone put forward, or improve, thank you Bo friends 650) this.width=650; "alt=" J_0058.gif "src="/http Img.baidu.com/hi/jx2/j_0058.gif "/>650" this.width=650; "alt=" J_0058.gif "src=" http://img.baidu.com/hi/jx2/j_ 0058.gif "/>650) this.width=650;" alt= "J_0058.gif" src= "Http://img.baidu.com/hi/jx2/j_0058.gif"/>
Installation Environment: ASIANUX3 Kernel version: Asianux 3.1
Package: httpd-2.4.12
pcre-8.20
apr-1.5.2
apr-util-1.5.4
Installation steps:
1. Environment check: The system is installed with Apr apr-util pcre Package
#rpm-qa Apr
Apr-1.2.7-11
#rpm-qa Apr-util
Apr-util-1.2.7-7axs3
#rpm-qa Pcre
pcre-6.6-2.7
These software systems have their own, but also cannot uninstall with other software and dependencies, so need to install additional software, and installed in a different path
2. Before starting the installation, install the development tool Library to see if the system is installed
#yum grouplist
Basic system
Development
Gnome Library
My system is already installed, if not installed then execute
Install #yum Groupinstall "Development Tools Development Library" command
3. Check the environment to start the installation, first install the Pcre software, copy the package to the server
#tar-JXF pcre-8.20.tar.bz2//Decompression Pcre Package
#ls//View the current directory will have an extra pcre-8.20 directory
#cd pcre-8.20//switch into pcre directory
#./configure--perfix=/usr/local/pcre
Compiling the disease specifies the PCRE installation directory
#make
#make Check//Verify make results, not required steps
#make Install
#ls/usr/local/pcre//View/usr/local/pcre
Bin include Lib Share
Pcre installation is complete.
4. Install Apr software
#tar ZXF apr-1.5.2.tar.gz//Extract Apr Package
#cd apr-1.5.2
#./configure--PREFIX=/USR/LOCAL/APR
Compile Apr. Specify the installation path
#make
#make Install
#ls/USR/LOCAL/APR
Bin include Lib Build-1
Apr Package Installation Complete
5. Installing the Apr-util Software
#tar ZXF apr-util-1.5.4.tar.gz//Decompression util package
#cd apr-util-1.5.4
#./configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR
Compile the Util software package, specify the installation directory, and develop the APR software installation directory. Because Util relies on Apr software
#make
#make Install
#ls/usr/local/apr-util
Bin include Lib
Apr-util Software Installation Complete
6. Install httpd software, and check if SELinux is disabled before installation (disabled)
#vim/etc/selinux/config
Selinux=disabled
#tar jxf httpd-2.4.12.tar.bz2//Unpacking Package
#cd httpd-2.4.12
#./configure--prefix=/usr/local/apache--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util--with-pcre= /use/local/pcre--sysconfdir=/etc/httpd--enable-so--enable-rewirte--enable-ssl--enable-cgi--enable-cgid-- Enable-modules=most--enable-mods-shared=most//compile, specify Apr,apr-util and Pcre installation path and module selection, required module must have So,rewi RTE ssl,cgi
#make
#make Install
#ls/usr/local/apache/bin//View bin directory, Apachetl is the startup script
AB checkgid envvers-std htdbm httpd rotatelogs apachectl
Dbmmanage fcgistarter htdigest httxt2dbm apxs envvare
Htcacheclean htpasswd Logresolve
7. Start the HTTPD service
#/usr/local/apache/bin/apachectl Start//Startup httpd Service
#netstat-anput|grep httpd//View 80 ports
TCP 0 0::: +:::* LISTEN 6211/httpd
Accessing the default home page with a browser http:10.10.0.251 results opens the Welcome screen and does not show it works
Modify this item under #vim/etc/httpd/conf/httpd.conf, home file path
Documentroor "/usr/local/apache/htdocs"
Open again, OK see it works!!!
Problems encountered during installation: prompt as follows,
util_pcre.c:in function ' Ap_regcomp ':
Util_pcre.c:128:error: ' Pcre_dupnames ' undeclared (first use of this function)
Util_pcre.c:128:error: (Each undeclared identifier was reported only once
Util_pcre.c:128:error:for each function it appears in.)
The problem is that the Pcre software is not installed, there is a hint when make, install Pcre software will be
2. When selecting the module, you can use the./configure--help command to select the desired module
This article is from the "Blue Sky of the Future" blog, please be sure to keep this source http://9052689.blog.51cto.com/9042689/1684008
Apache-httpd-server