Apache is an HTTP web server. It is an open source software available for most operating systems. Nowadays, more than 60% of world web servers use Apache. In this article, I will just show you how to install Apache on Fedora.

1.1 Apache Installation

To install Apache with its documentation, open the terminal (Applications >> System Tools >> Terminal), then run this command:

    su -c 'yum install httpd-manual'

1.2 Start/Stop Apache

After installing Apache, it's time now to start it. So run this command in the terminal:

    su -lc 'service httpd start'

To stop Apache web server, run this command:

    su -lc 'service httpd stop'

If you want Apache web server to start automatically at computer startup, then run this command:

    su -lc 'chkconfig httpd on'

To check if it is running, try to open these URLs in your web browser:

    http://localhost/ - Test Page for the Apache HTTP Server on Fedora.

    http://localhost/manual/ - Apache HTTP Server Version 2.2 Documentation.

1.3 Directories and Files to know

- /etc/httpd/conf/httpd.conf: Main config file, it's highly recommended that you not modify this file.

- /etc/httpd: The directory containing all configuration files.

- /etc/httpd/conf.d: The directory containing  extra config files.

- /var/log/httpd: The directory containing logs.

   - /var/log/httpd/access_log: Tracing all pages handled by the server.
   - /var/log/httpd/error_log: Error Log.

- /var/www: The directory containing the default site data.

- /var/www/error: The directory containing pages displayed on error.

- /var/www/html: The directory containing default site pages.

- /var/www/cgi-bin: The directory (empty) containing scripts.

- /var/www/manual: The directory containing the documentation.

- /var/www/icons:  The directory containing some icons.   

Post a Comment