Current time: 11-27-2024, 02:43 PM Hello There, Guest! (LoginRegister)


Post Reply 
isp-control with mod_php5
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #5
RE: isp-control with mod_php5
Quote:PHP under fcgid is actually not too much slower than php as a module (within a few percent last I read), and you have a lot more security keeping it separated.

In fact, static file serving is even faster and less resource-consuming because you can use the threaded apache workers with fastcgi, whereas you can not with mod_php (php is not thread-safe) Wink

Quote:You also have the benefit of lower memory use as PHP is only used when necessary. If you use PHP as a module, it's included in the memory usage even if all that is being served is a static html file or image.

This is not necessarily true. With the default ispcp setup, each php-enabled website has at least 2 php-cgi backends for fastcgi, even when they're never accessed. Therefore, the number of php-cgi processes grows linearly with respect to the number of domains on your server, even when they're almost never used. As a result, the system probably consumes much more memory than if you go the mod_php way. In this setup, all apache workers (processes) can serve requests for any domain, so the total number of processes that you'll need is probably much lower than 2*number of domains...
(This post was last modified: 12-05-2009 04:36 AM by kilburn.)
12-05-2009 04:34 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
isp-control with mod_php5 - manija - 12-04-2009, 09:00 AM
RE: isp-control with mod_php5 - gOOvER - 12-04-2009, 04:11 PM
RE: isp-control with mod_php5 - kilburn - 12-05-2009, 12:54 AM
RE: isp-control with mod_php5 - motokochan - 12-05-2009, 04:19 AM
RE: isp-control with mod_php5 - kilburn - 12-05-2009 04:34 AM
RE: isp-control with mod_php5 - manija - 12-10-2009, 09:11 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)