29.7. Install Apache

Now, we must install Apache in the Linux server:


        [root@deep ]/apache_1.3.12# make 
        [root@deep ]/apache_1.3.12# make install 
        [root@deep ]/apache_1.3.12# rm -f  /usr/sbin/apachectl
        [root@deep ]/apache_1.3.12# rm -f  /usr/man/man8/apachectl.8
        [root@deep ]/apache_1.3.12# rm -rf /home/httpd/icons/
        [root@deep ]/apache_1.3.12# rm -rf /home/httpd/htdocs/
        [root@deep ]/apache_1.3.12# cd /var/tmp/php-4.0
        [root@deep ]/php-4.0.0# install -m 644 php.ini.dist /usr/lib/php.ini
        [root@deep ]/php-4.0.0# rm -rf /etc/httpd/conf/ssl.crl/
        [root@deep ]/php-4.0.0# rm -rf /etc/httpd/conf/ssl.crt/
        [root@deep ]/php-4.0.0# rm -rf /etc/httpd/conf/ssl.csr/
        [root@deep ]/php-4.0.0# rm -rf /etc/httpd/conf/ssl.key/
        [root@deep ]/php-4.0.0# rm -rf /etc/httpd/conf/ssl.prm/
        [root@deep ]/php-4.0.0# rm -f  /etc/httpd/conf/srm.conf srm.conf.default access.conf access.conf.default
      

Please as usual do cleanup later:


        [root@deep ]/# cd /var/tmp
        [root@deep ]/tmp# rm -rf apache-version/ apache-version.tar.gz mod_ssl-version-version/ mod_ssl-version-version.tar.gz php-version/ php-version.tar.gz mod_perl-version/ mod_perl-version.tar.gz
      
The rm command will remove all the source files we have used to compile and install Apache, mod_ssl, mod_perl, and php. It will also remove the Apache, mod_ssl, mod_perl, and php compressed archives from the /var/tmp directory.