> > > >Is there a drawback to running php5 as CGI? > > > > > > Anthony, > > > > > > I really don't know, because computers are much faster, so > > > there may not be the time lags there were 10 years ago. > > > > > > As I understand CGI, the web server sees that the page is of > > > type .php, starts up PHP, PHP processes the page, the web > > > server shuts down PHP and sends out the results. The overhead > > > of starting and stopping PHP (or Perl, etc.) was the > > > complaint. > > > > > > When PHP is loaded as an Apache module there is not startup / > > > shutdown overhead. > > > > > > If I have this wrong, or if PHP5 as a CGI stays resident and > > > there is no penalty, will someone please correct me. > > > >No, nothing wrong there, I think. > > > >But there are other differences. (Like some functions not > >working, etc.) Pros and cons, one might say. Anyway, here > >are some results of a quick google search: > > > > http://www.google.com/search?q=php+CGI+module+difference > > > >Hmm.. I just couldn't find it but there should be a page > >about it on www.php.net ... (^_-) > > > > > Regards - Miles > > > >HTH, > > > >- Edwin - > > > Thanks Edwin. I guess it was too late and I couldn't formulate a proper > search expression. > > I'd like to hear Chris Shiflet's opinion on the security advantages of > running PHP5 as CGI. Why, after years of running PHP as an Apache module, > the sudden conversion to CGI operation? > > I've noticed occasional references of PHP5 "having issues" with CPanel. Is > it simply easier for ISPs, given the intense competitive cost pressures > they are under, to not wrestle with these issues, but to say "Here it is as > a CGI if you want it." One major difference is the CGI runs as your user - whereas the apache module runs as the apache user which can cause problems with permissions etc (hence "safe-mode" and "open-basedir" to try and restrict what you can do). -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php