You are here: Re: Higher perfs by running PHP app in (Fast|S)CGI? « PHP Programming Language « IT news, forums, messages
Re: Higher perfs by running PHP app in (Fast|S)CGI?

Posted by Michael Fesser on 01/07/08 09:30

..oO(Gilles Ganault)

>I just read this article on running web apps in SCGI, and was
>wondering...
>- if it's possible to run PHP apps this way: I only know of running
>them in plain CGI mode (ie. the interpreter is started with very
>request, and the pages reparsed each time), and mod_php (the
>interpreter is loaded once when the web server starts, but pages are
>parsed for every request, unless using eg. APC or eAccelerator to
>cache them)

One of my hosts runs plain CGI, the other FastCGI. Both work very well.

>- if it is indeed possible, are performances higher than using
>mod_php?

No. The module will almost always be the fastest, but (Fast)CGI also has
its benefits. It's easier to secure the environment without forcing too
many restrictions onto the user.

If you need as much performance as possible, then get a dedicated or at
least a virtual server and run the server module. But on a shared host I
usually prefer the (Fast)CGI version.

Micha

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация