lmandaleeka Posted September 1, 2006 Share Posted September 1, 2006 I am just exploring technologies, one question I had was, is PHP run as a ssi - within the process space of the webserver or is it run as CGI?If I can do both, then is there any support in PHP for Fast CGI?I read that session management is done by writing to secondary storage like /tmp of disks or databases, if I were to chose the Fast CGI option is there any in memory session management capability available? Quote Link to comment Share on other sites More sharing options...
Caesar Posted September 1, 2006 Share Posted September 1, 2006 PHP runs much better as an Apache module. If possible, avoid using it in CGI mode.Edit: Also, avoid using it on a Windows server if possible. :-) Windows runs it okay...but if you can use a *nix system...would be a good thing. Quote Link to comment Share on other sites More sharing options...
lmandaleeka Posted September 1, 2006 Author Share Posted September 1, 2006 What are the reasons that PHP shouldnt be used in CGI mode?One is apparently the typical reasons of CGI having a lot of process over head due to process start and stop. Cant this be mitigated with fast cgi? Can we use PHP in fast cgi mode?If I were to use JVM based servlets or JSPs versus PHP, isnt it more efficient considering that PHP is interpreter based? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.