0% found this document useful (0 votes)
39 views

Apache 2

To quickly install Apache and related packages on Fedora, run "yum groupinstall 'Web Server'" which will install httpd, PHP, mod_ssl, mod_python, squid and weblizer. After configuring Apache, start the httpd service with "/sbin/service httpd start" and restart gracefully with "/sbin/service httpd graceful" to not disturb connected clients. The default document root is "/var/www/html" but can be changed with the DocumentRoot directive.

Uploaded by

Juan Carlos Luna
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Apache 2

To quickly install Apache and related packages on Fedora, run "yum groupinstall 'Web Server'" which will install httpd, PHP, mod_ssl, mod_python, squid and weblizer. After configuring Apache, start the httpd service with "/sbin/service httpd start" and restart gracefully with "/sbin/service httpd graceful" to not disturb connected clients. The default document root is "/var/www/html" but can be changed with the DocumentRoot directive.

Uploaded by

Juan Carlos Luna
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 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