compiling and installing http-2.4.10 :
First, install the development tools:
# yum Groupinstall-y "Development Tools" "Server Platform Development"
Lftp 172.16.0.1:/pub/sources/sources/httpd>
Download these 3 packages:
Mget apr-1.5.0.tar.bz2
apr-util-1.5.3.tar.bz2
httpd-2.4.10.tar.bz2
It is best to compile the installation in the order above:
# Tar XF apr-1.5.0.tar.bz2
# CD apr-1.5.0
#./configure--PREFIX=/USR/LOCAL/APR
# Make && make install
# CD
# Tar XF apr-util-1.5.3.tar.bz2
# CD apr-util-1.5.3
#./configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR
# Make && make install
# CD
# Tar XF httpd-2.4.10.tar.bz2
# CD httpd-2.4.10
#./configure--help | Less
Install the two compatibility packs:
# yum Install Pcre-devel zlib-devel-y
#./configure--prefix=/usr/local/apache--sysconfdir=/etc/httpd24--enable-so--enable-ssl--enable-cgi-- Enable-rewrite--with-zlib--with-pcre--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util/-- Enable-modules=most--enable-moms-shared=all--with-mom=event
# Make && make install
# vim/etc/profile.d/httpd.sh
Add a line: Export Path=/usr/local/apache/bin: $PATH
# . /etc/profile.d/httpd.sh
# Apachectl Start
# SS-TNL
At this point the 80 port has been opened;
The website can now be accessed through a browser: 172.16.8.101
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6C/4D/wKioL1VF9i3Syx9GAABz2JCwUxQ588.jpg "title=" Picture 20.png "alt=" Wkiol1vf9i3syx9gaabz2jcwuxq588.jpg "/>
# LN-SV/USR/LOCAL/APACHE/INCLUDE/USR/INCLUDE/HTTPD
# Vim/etc/man.config Add the Man manual for HTTP to the Master Man manual file;
Add: Manpath/usr/local/apache/man
# MKDIR/DATA/WEB/HTDOCS-PV
# vim/data/web/htdocs/index.html
Added:
Make a backup of the master configuration file (to prepare for a later restore):
# Cp/etc/httpd24/httpd.conf/etc/httpd24/httpd.conf.bak
# vim/etc/httpd24/httpd.conf
Modified to: DocumentRoot "/data/web/htdocs"
<directory "/data/web/htdocs" >
# Killall-sighup HTTPD
Login again in the browser: Enter 172.16.8.101 to see what we have just created;
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6C/51/wKiom1VF9NngZlAvAACnJK-w7kQ590.jpg "title=" Picture 21.png "alt=" Wkiom1vf9nngzlavaacnjk-w7kq590.jpg "/>
Add the HTTPD24 service script:
# cd/etc/rc.d/init.d/
# CP httpd HTTPD24
# Vim HTTPD24
Modified to:
Apachectl=/usr/local/apache/bin/apachectl
HTTPD=${HTTPD-/USR/LOCAL/APACHE/BIN/HTTPD}
Pidfile=${pidfile-/usr/local/apache/logs/httpd.pid}
# ll HTTPD24 See if there are execution permissions;
# chkconfig--add httpd24
# chkconfig--list httpd24
# Chkconfig HTTPD24 on
# service HTTPD24 Start
# SS-TNL
At this time, the compiled and installed http-2.4.10 can be used normally;
Compiling and installing http-2.4.10