Category: Apache

Installation, setup and configuration of Linux Apache2 web server

By peter, August 19, 2009

Getting Apache started


Apache is the Linux web server. Make sure you install apache2 from the installation CD. You can also download it from the Internet.

Getting Apache running

Start the apache at the command prompt by typing the command

rcapache2 start.

To make sure that it starts at boot type the command

chkconfig apache2 on

If you have installed the demo web pages you will get a web page to confirm that it works.

Configuring Apache

With SuSE web pages are stored in the /srv/www/htdocs/ folder. Other distros could store default web pages in other locations (In older versions, web pages were stored in the following directory /usr/local/httpd/htdocs/)
Copy your own web site to this location (by default the home page is index.html) If you want to use another name you need to do the following:

edit the /etc/apache2/httpd.conf file

edit the /etc/apache2/httpd.conf file




vi the file etc/apache2/httpd.conf and Find the line “DirectoryIndex index.html” Add to the same line after “index.html” any other page name you want to use. (Apache searches in the order of the page names you specify and servers the first one it comes across)

OfficeFolders theme by Themocracy