If you have already compiled/installed PHP and Apache from their web sites, I suggest you remove them before doing this.
This command should fix everything:
Code:
apt-get update
apt-get install php4 php4-mysql apache
It should ask you if you want to add the PHP module to the apache configuration, if
NOT add the following to
/etc/apache/httpd.conf:
Code:
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
You have to remember that Apache on Debian won't start until a hostname is set:
Code:
echo youthostname > /etc/hostname
/bin/hostname -F /etc/hostname
Then reboot the server and evrything should work.