User:Jaaf/draft2

The Apache HTTP Server is a efficient and extensible web server and the most popular on the Internet.

Support in other packages
There is a global USE flag apache2 which enables support for Apache in other packages. This may cause to be pulled in automatically if such packages are used.

After setting this you want to update your system so the changes take effect:

Launching and restarting
Start the Apache server:

Add Apache to the default runlevel:

Restart the Apache service:

enable PHP support
Install PHP with the apache2 USE flag and enable the module:

To test if the PHP module works, create a test page:

Now open the test page: http://localhost/.

Testing
Verifying IP interfaces and ports on which apache2 is running on and listening to:

Testing if a connection to a Apache server is working on localhost:

Interrupt the connection test with + and.

Troubleshooting

 * Troubleshooting guide

External resources

 * Slicehost article: Installing Apache on Gentoo
 * Slicehost article: Apache configuration files on Gentoo
 * Slicehost article: Configuring the Apache MPM on Gentoo
 * Slicehost article: Apache configuration on Gentoo
 * Slicehost article: Apache Virtual Hosts on Gentoo
 * Slicehost article: Enabling and using apache's mod_status on Gentoo
 * apache.org documentation
 * Apache2 mod_pagespeed