Greetings, First - let me say that the perfect set up tutorials are awesome. I used the ubuntu one and it worked flawlessly for building a dev box in my home. Recently, however, I purchased a new dedicated server (debian) and followed the same guide to configure it. Everything seems to be working EXCEPT for php4. When I attempt to view a file containing phpinfo() (and i guess the same would be true for anything with a .php extension) such as http://64.34.203.77/ I am asked to download something which is application/x-httpd-php. Any ideas on how I can resolve this? Perhaps related to this is the fact that I could not install php4-imap - it returned an error that it required a package called phpapi but said package was not available. My sources list is as follows # Main deb http://people.debian.org/~dexter php5 sarge deb http://http.us.debian.org/debian/ stable main non-free contrib deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free deb http://www.backports.org/debian/ sarge-backports main contrib non-free deb http://people.debian.org/~dexter php5 sarge deb-src http://people.debian.org/~dexter php5 sarge deb http://packages.dotdeb.org stable all deb-src http://packages.dotdeb.org stable all # Source deb-src http://http.us.debian.org/debian/ stable main non-free contrib deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free # Security deb http://security.debian.org/ stable/updates main contrib non-free deb http://ftp2.de.debian.org/debian/ unstable main non-free contrib
Well, I was able to get it working by purging the apt cache. Is there any known issue with php4-imap though? I still get errors on attempting to install it.
You should have followed this tutorial: http://www.howtoforge.com/perfect_setup_debian_sarge for your Debian system instead of a Ubuntu tutorial.