“This tutorial shows how to install and configure Apache2 with PHP5 and PHP4 enabled at the same time. Because it is not possible to run both PHP5 and PHP4 as Apache modules, we must run one of them as CGI, the other one as Apache module. In this document I will use PHP5 as Apache module and PHP4 as CGI, and I will describe the setup for the Linux distributions Debian Sarge and Ubuntu 5.10.”
Running Apache2 with PHP5, PHP4
Submitted by Falko Timme 2006-02-26 Internet 3 Comments
running php as a cgi is a bad idea for security and performance.
this is only needed as php5 isn’t as backwardly compatible as it should be, and the mysqli system is causing so many problems.