Reply to Re: CGI PHP vs. FastCGI vs. mod_php vs. application server?

Your name:

Reply:


Posted by Jerry Stuckle on 01/04/07 14:06

Vincent Delporte wrote:
> On 3 Jan 2007 11:32:19 -0800, "NC" <nc@iname.com> wrote:
>
>>Check the documentation for your HTTP server. It will likely have
>>some information about performance improvement with PHP.
>>Generally speaking, CGI is the worst performer. The choice
>>between FastCGI and server modules will depend on the HTTP
>>server you are using.
>
>
> I'm free to use any server that I want since it'll be hosted on our
> premises. Apart from loading the PHP interpreter at boot time, what
> else do FastCGI and Apache's mod_php do to increase performance? Do
> they compile PHP scripts into bytecode once, do they leave connections
> to MySQL open, other things?
>
> Thank you.

No, they don't compile PHP into bytecode. The best you're going to do
is to get a package to cache the compiled PHP.

And MySQL connections are generally best NOT being left open. Open
connection still require system resources, even when they are not being
used. And you would need the maximum possible number of connections you
would ever need open all the time.

But I really think you're worrying about performance problems that don't
exist. Just get yourself a decent server, load a good Linux distro and
Apache server on it and go.

Once you've got your site up, see if you have performance problems. If
so, figure out where those problems are and fix them.

Hint: If you do have problems, they won't be in the PHP compiler or
MySQL connection code.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original 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

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