Hi There is a very good reason process classes are per-virtualhost: you can assign environment values on each virtualhost, say different PHPRC for custom ini files per virtualhost. If requests from different virtualhosts were allowed to share a same PHP process, which environment values would be set? Worse, you could have one PHP process spawned from virtualhost A, handling requests coming from virtualhost B. Since ENV is different, you could completely screw up your setup.
There is many examples of applications involving Env values: PHP is the most common, but most RoR apps and Trac are also using them. To bypass that isolation, the best solution would be to use an external process, but unfortunately mod_fcgid is not capable of doing that yet (the 5 years-old mod_fastcgi can do it, but be prepared to debug it yourself since no one is maintaining it anymore). Or maybe you could try a combination of an external PHP process + the cgi-fcgi wrapper which could do the same thing, with a more complex setup though. Gabriel On 08/06/2008 5:31:25 PM +0200, Nick Loman <[EMAIL PROTECTED]> wrote: > Hi there, > > I have a fixed ceiling of PHP processes, but multiple virtual hosts. > > As I understand it, PHP processes are allocated to a "class" based on > virtualhost the request comes from. > > Is there a way of putting all PHP requests from any virtual host into > the same class? > > I.e. I want to have a MaxProcesses of 30 and a MaxProcessesPerClass of > 30 and then make all PHP scripts go to that single class. > > Is that possible? > > Cheers, > > Nick. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Mod-fcgid-users mailing list > Mod-fcgid-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Mod-fcgid-users mailing list Mod-fcgid-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users