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
The make command will compile all source files into executable binaries
The make install will install the binaries and any supporting files into the appropriate locations.
The rm -f command will remove the small script apachectl
responsible to start and stop the Apache daemon since we use a better script named httpd
located
under the /etc/rc.d/init.d/
directory that takes advantage of Linux system V.
We also remove the /home/httpd/icons
directory used under Apache when you use its automatic indexing feature. This feature can bring about a security risk, and for this reason we've disabled
it in the configuration file. Therefore, we can safely remove the directory to make space on the Linux server. The /home/httpd/htdocs
directory handles all documentation files related to Apache, so
after we have finished reading the documentation we can remove it to make space.
The install -m
command will install the php.ini.dist
file under the /etc/httpd/
directory, and will rename it php.ini;
This file controls many aspects of PHP's behavior.
The ssl.crl
, ssl.crt
, ssl.csr
, ssl.key
and ssl.prm
directories under /etc/httpd/conf
are all of the
directories related to SSL, and handle private and public keys. Since we use another location, /etc/ssl/
, we can remove them safely.
Finally, we remove the unused srm.conf
, srm.conf.default
, access.conf
and access.conf.default
files, whose purposes are now handled by the httpd.conf
Apache file.
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.