2. Unzip
# tar zxf httpd-2.2.4.tar.gz
# CD httpd-2.2.4
3. Install Apache dependency Pack Apr and Apr-util, they are all in the Srclib directory
3.1 Installing Apr
# CD SRCLIB/APR
#./configure--PREFIX=/USR/LOCAL/APR
# make
# make Install
3.2 Installing Apr-util
# CD: /apr-util
#./configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR
# make
# make Install
4. Installing Pcre
#cd pcre-8.10
#./configure--prefix=/usr/local/pcre
#make
#make install
5. Installing httpd
# CD: /.. /
#./configure--prefix=/usr/local/httpd--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util -- With-pcre=/usr/local/pcre --enable-so--enable-rewrite
# make
# make Install
--ENABLE-SO Support DSO mode (dynamic module loading mode)
--enable-rewrite support Rewrite (address redirection)
Start the service
/usr/local/apache2/bin/apachectl start Apache
/usr/local/apache2/bin/apachectl stop stop Apache
Add a service to auto start
echo "/usr/local/apache2/bin/apachectl start" >>/etc/rc.d/rc.local add self-start
http://192.168.1.104/
If the page appears as follows:
It works!
Congratulations, Apache installation was successful ~
Linux httpd installation