Apache2 Installation mit PHP4 unter Debian


Requiered:
- Debian 3.1
Installation:
- Installieren via apt-get
apt-get install apache2 apache2-doc libapache2-mod-php4 libapache2-mod-auth-mysql php4 php4-mysql

Die Configurationsdateien befinden sich in /etc/apache2/
- Konfigurieren der Docomentroute
# vi /etc/apache2/sites-enabled/000-default
NameVirtualHost *

ServerAdmin webmaster@yourdomain.com
DocumentRoot /var/www/htdocs/

Options FollowSymLinks
AllowOverride None


Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# RedirectMatch ^/$ /apache2-default/ # unbedingt auskommentieren!

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"

Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all



# mkdir /var/www/vhosts/
# /etc/init.d/apache2 restart
Other-Apache-files:
- Apache2 vHosts
- Apache2 DirectoryIndex