apt-get install apache2 apache2-devel apache2-mod_perl apache2-mod_php4 apache2-prefork libapr0 perl-HTML-Parser perl-HTML-Tagset perl-Tie-IxHash perl-URI perl-libwww-perl php4
apt-get install php4-bcmath php4-zlib php4-yp php4-xslt php4-wddx php4-unixODBC php4-sysvshm php4-sysvsem php4-swf php4-sockets php4-snmp php4-shmop php4-session php4-servlet php4-qtdom php4-pgsql php4-pear php4-mysql php4-mime_magic php4-mhash php4-mcrypt php4-mcal php4-mbstring php4-ldap php4-imap php4-iconv php4-gmp php4-gettextphp4-gd php4-ftp php4-filepro php4-fastcgi php4-exif php4-domxml php4-devel php4-dbx php4-dbase php4-curl php4-ctype php4-calendar php4-bz2 ImageMagick curl
chkconfig --add apache2
Editati /etc/mime.types. Scoateti comentariile din fata urmatoarelor doua linii:
# application/x-httpd-php                phtml pht php
# application/x-perl             pl pm

Editati /etc/apache2/httpd.conf ?i modificati linia

DirectoryIndex index.html index.html.var
în
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.html.var
Editati /etc/sysconfig/apache2 ?i adaugati rewrite la linia APACHE_MODULES:
APACHE_MODULES="access actions alias auth [...] setenvif ssl suexec userdir php4 php5 rewrite"

De asemenea adaugati SSL la linia APACHE_SERVER_FLAGS:
APACHE_SERVER_FLAGS="SSL"

Apoi rulati
/etc/init.d/apache2 start