suPHP or mod_ruid?

BestBoard

Verified User
Joined
Sep 8, 2006
Messages
179
Hi,
Almost 2 years I am using suPHP + PHP FCGI.
Last week I accidentally found some mini-article about mod_ruid.
If I understand correctly, this mod is very similar to suphp.

As far as I know, suphp + php fcgi is slower than php cli + mod_ruid (and you can also install some accelerators...).

So what do you think?
Which one is better?
 
Last version has been released in 2005, author says there is at least one critical security vulnerability (Apache compromise leads to root compromise!). MPM-peruser (www.peruser.org) is slightly more recent and secure, but many people complain about bugs. And you won't be able to use MPM-worker or any other good performance MPM.

At this time there is no stable or secure solution to run mod_php on multiple, separated privilege processes. And, FastCGI is not that much slower than mod_php (you can't even notice the difference); normal CGI is.
 
Is there an easy way to convert a server from suPHP to fastCGI? One which you could do to a new or existing server which would not only switch for all current users but would allow new users to be automatically using fastCGI?

And which could be updated with CustomBuild?

If possible I'd like to see this as a supported standard.

Jeff
 
Well, I guess it's just like moving from Ubuntu to Gentoo.

- there is no default, good config for everyone: it depends on number of users, system power, system memory, disk free space...
- when a problem arises, it will be slightly less simple to solve; just because the complexity of a system follows the number of entities involved

Of course there is a config for FastCGI which goes for everyone, but that config makes the PHP binary to run just like normal CGI, which is slower than mod_php, and is the reason for mod_php to be the default.

But... but... DA is meant to be run on a shared hosting system, which means that mod_php should NOT be the default... which means, in conclusion, that FastCGI with a very simple config may be acknoledged as the default install. Or at least, answering your question, as a supported standard.
 
Well, I guess it's just like moving from Ubuntu to Gentoo.
Okay, you've just scared me :). Not that I can't do it; I've been installing since the old days when the only distro was a very early Slackware. Just that it's a lot of work :).
- there is no default, good config for everyone: it depends on number of users, system power, system memory, disk free space...
- when a problem arises, it will be slightly less simple to solve; just because the complexity of a system follows the number of entities involved

Of course there is a config for FastCGI which goes for everyone, but that config makes the PHP binary to run just like normal CGI, which is slower than mod_php, and is the reason for mod_php to be the default.
I think most of us are using faster machines than we did a few years ago :) and so far I'm fine with suPHP. What I'm looking for now is a FastCGI that's easy to maintain on every server.
But... but... DA is meant to be run on a shared hosting system, which means that mod_php should NOT be the default... which means, in conclusion, that FastCGI with a very simple config may be acknoledged as the default install. Or at least, answering your question, as a supported standard.
I think I'd like that, but then would it be faster than suPHP?

Thanks.

Jeff
 
FastCGI with a good-for-everyone config will be "slow" (and you are right, most users are ok with that, but not all of them) just like suPHP.

In fact, if I were about to decide how to include FastCGI in the DA install (through CustomBuild of course), I would do something like this:

- create a config for anyone with light systems (will run just like with suPHP)
- create a config for people with heavy systems but small RAM (runs ok)
- create a config for people with any system and large RAM (best config)
- let the user decide while installing

(and, by the way, I would do exactly the same thing for Apache MPMs choice and config, php.ini and my.cnf, since too many people seem to ask on this forum about these configs)
 
Thanks, tillo.

The second option... will it run faster or slower than just suPHP?

Thanks!

Jeff
 
The second option... will it run faster or slower than just suPHP?
It will be faster, almost like mod_php.

In fact, I thought about something like this:

1) no persistent processes or very few (will respawn often); speed =~ suPHP
2) persisten processes (no respawning); speed =~ mod_php
3) persisten processes and opcode caching; speed > anything else
 
PHP-FPM is just an alternative to FastCGI, as Ngnix is an alternative to Apache. It can be slower or faster depending on the config. There also is lighttpd, mod_fcgid for Apache and other alternatives.
 
Now I'm using Apahce 2.2.14 (Worker MPM) + suphp.
It works pretty good :)

But I'm always looking forward for something better.
I read reviews and benchmarks about nginx and everyone say that nginx is the best performance web server.
 
And there are threads on these forums on using nginx. Search these forums for more information. It's unlikely that DirectAdmin will install and manage it by default.

Jeff
 
Back
Top