Installing PHP on Debian
I always find it confusing to install PHP for CGI with MySQL support on Debian. I tried with
aptfirst, then with the unofficial packages from dotdeb, before finally giving in to compile-from-source of PHP 5.
./configure --prefix=/usr/local/php5-fcgi --enable-fastcgi \ --enable-force-cgi-redirect --disable-cli --with-mysql