waldo wrote:
Why is running mod_php a "bad idea"?
1. The PHP engine gets loaded even if Apache is only serving a tiny static file. This wastes RAM. You shouldn't have to run a 15MB process to serve 15KB files.
2. PHP scripts are executed with the same privileges as the web server. This leads to various security issues when you have more than one website on the same server, especially if those sites are administered by different people. Various stopgap measures such as open_basedir and safe_mode have been invented, but they're nowhere near as secure as running a separate FastCGI process.
3. Because PHP is not thread-safe, mod_php prevents the use of mpm_worker, which is the officially preferred multiprocessing model for recent versions of Apache.
These things probably don't matter, though, if you only have one site on your server (or a bunch of sites all administered by you) and you don't have a lot of visitors.