Portal Home > Knowledgebase > Articles Database > PHP running as CGI or FCGI


PHP running as CGI or FCGI




Posted by bloodyman, 08-22-2012, 02:57 PM
Hi recently I've read many topics about hang processes of PHP FCGI, which simply kill server memory http://www.cloudlinux.com/blog/clnew...-and-fcgid.php I don't know if this problem also exist on servers running PHP as CGI (not FCGI)? What is the security difference between CGI and FCGI for PHP? I did not find any, while on cPanel website there is information that CGI is not secure...

Posted by iseletsk, 08-23-2012, 10:09 AM
The problem with orphaned PHP processes doesn't exist with CGI. The security of CGI & FCGI is the same and as good as suPHP as long as you are you using suexec.

Posted by racknap1, 08-23-2012, 11:56 AM
Hi, fcgi-cgi is a FastCGI application to run normal cgi applications. It doesn't make CGI applications faster, but it allows you to run them on a different host and with different user permissions (without the need for suexec). lighttpd2 won't have a mod_cgi, so you need this FastCGI wrapper to be able to execute standard cgi applications like mailman and cgit.

Posted by bloodyman, 08-24-2012, 06:07 PM
Do you have any tips for makeing php as cgi more secure? I know about suExec but I'm looking for any other tips.

Posted by BestServerSupport, 08-25-2012, 12:25 AM
suPHP is an alternative to secure PHP processes. For FAQ on suPHP refer http://www.suphp.org/FAQ.html



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
i need reseller 10GB (Views: 767)
SSL Issues (Views: 687)


Language: