Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

To quickly install Fedora's Apache packages, install the 'Web Server' Yum group.

This will install HTTPD with support for PHP, mod_perl, mod_ssl, and mod_python. The Web Server group also contains squid and weblizer.

yum groupinstall "Web Server"

yum install httpd yum install mod_ssl mod_python

yum install system-config-httpd

Run chkconfig to cause httpd to start when the system enters multiuser mode:
# /sbin/chkconfig httpd on

After you configure Apache, use service to start httpd:


# /sbin/service httpd start

After changing the Apache configuration, restart httpd with the following command, which will not disturb clients connected to the server:
# /sbin/service httpd graceful

The root of the directory hierarchy that Apache serves content from is called the document root. As shipped by Red Hat, the document root is /var/www/html. You can use the DocumentRoot directive (page 796) to change the location of the document root.

JumpStart I: Getting Apache Up and Running

You might also like