- Viewed 21k times15answered Sep 16, 2008 at 23:02
Security in what sense? Either way it really depends on what script is running and how well it is written. Too many scripts these days are half-assed and do not properly do input validation.
I personally prefer FastCGI to mod_php since if a FastCGI process dies a new one will get spawned, whereas I have seen mod_php kill the entirety of Apache.
As for security, with FastCGI you could technically run the php process under a different user from the default web servers user.
On a seperate note, if you are using Apache's new worker threading support y...
Content Under CC-BY-SA license - Question & Answer
php - Is there a difference between apache module vs cgi …
Explore further
Apache Tutorial: Dynamic Content with CGI
- People also ask
Running PHP script through CGI with Apache... how?
What is difference between PHP cli and PHP cgi? - Stack Overflow
Which PHP mode? Apache vs CGI vs FastCGI - Layershift Blog
mod_cgi - Apache HTTP Server Version 2.4
Run PHP with CGI and Apache on Ubuntu 12.04 LTS (Precise …
Run PHP Applications under CGI with Apache on Ubuntu 8.04 …
PHP: Installed as CGI binary - Manual
command line - How to configure Apache to run PHP as FastCGI …