This page describes the installation of Apache and PHP which is often required for various services.
With Debian install the following packages :
Apache will be installed in prefork mode because the threaded mode is not supported by php.
The apache configuration is defined into the file /etc/apache2/apache2.conf. This file includes other files dynamically :
The standard configuration is done by creating one or more files located in /etc/apache2/sites-available/ and enabling them.
To enable of disable a file, use the following commands :
For modules, the commands are :
For exemple, to disable the default configuration :
bender:/etc/apache2/sites-available# a2dissite default Site default disabled; run /etc/init.d/apache2 reload to fully disable. bender:/etc/apache2/sites-available#
To see details of apache configuration, please check the following pages :