Saturday, January 31, 2009

Apache installation and directories

The apache RPM installs files in the following directories
  1. /etc/httpd/conf : Contains Apache config file (httpd.conf)
  2. /etc/httpd/conf.d/*.conf : Contains config files for other software bundles that can be integrated with apache eg. mysql, phpMyAdmin
  3. /var/www/html : Contains web content like php pages, html files, cgi scripts etc.
  4. /var/www/manual : contains copy of apache config manual
  5. /etc/rc.d/init.d : contains script for starting and stopping the server.
  6. /usr/sbin : contains executable programs
  7. /var/log/httpd : server log files are placed in this directory. Two important log files are there access_log, error_log
Note: When apache is being run, it also creates the file httpd.pid containing the process ID of Apache's parent process in /var/run directory.





===============================================
Thanks for reading.