The Apache Web server software uses these files and directories:
♦ The Web server program—httpd — is installed in the /usr/sbin directory.
♦ The Apache Web server configuration file — httpd.conf —is located in the /etc/httpd/conf directory. The configuration file is a text file with directives that specify various aspects of the Web server (a later section describes the Apache directives).
♦ The Apache Web server treats files with a .conf extension in the /etc/httpd/ conf.d directory as configuration files for Apache modules such as mod_perl, mod_python, mod_ssl, and so on. For example, the /etc/httpd/conf.d directory contains the configuration information that SSL needs.
♦ The Apache Web server is set up to serve the HTML documents from the /var/www/html directory. Therefore, you should place your Web pages in this directory.
♦ If you have any Common Gateway Interface (CGI) programs — programs the Web server can invoke to access other files and databases —you should place these in the /var/www/cgi-bin / directory.
♦ The /var/log/httpd directory is meant for Web server log files (access logs and error logs).
♦ The / etc/init.d/httpd script starts the httpd process as your Linux system boots. You can type the command /etc/init.d/httpd start to run the Web server (another way is to type service httpd start).
Was this article helpful?
This Report Will Show You How To Make Money By Providing Writing Services To Other Internet Marketers. Learn how to make money by writing the right way. Grab your copy of this report now and learn. Why writing is a great way to earn money. How to compete with cheap writers, even if you charge a lot more money.