FastCGI issue

I have an ubuntu 6.06 LTS running a Virtualmin Professional License in a XEN Hosted DOM with the ubuntu xen kernel as per ubuntu repository.

The issue is that when I have this configuration:

1 virtual server
2 sub-servers and 1 alias of this virtual server
with website enable on all of them.

Can I enable different PHP script execution mode options?

For example virtualmin will let me set up the virtual server as fastcgi and 4 sub-processes with the two sub-servers and the alias run as Apache’s user, when in reality it will run all of them as fastcgi (as a matter of fact it will keep creating php5-cgi processes).

For example If I have defined:

virtual server - FCGId (run as virtual server owner) with 4 subprocesses
sub-server and alias - Apache mod_php

What it really does:

It will treat ALL of them as FCGId with # ps axu | grep [ID of virtual server]

[ID] 11381 0.0 0.4 15220 4748 ? Ss 08:24 0:00 /usr/bin/php5-cgi
[ID] 11382 0.1 1.2 24780 14656 ? S 08:24 0:02 /usr/bin/php5-cgi
[ID] 11383 0.1 1.2 25016 14896 ? S 08:24 0:02 /usr/bin/php5-cgi
[ID] 11384 0.2 1.3 25908 15768 ? S 08:24 0:02 /usr/bin/php5-cgi
[ID] 11386 0.2 1.2 25120 15000 ? S 08:24 0:02 /usr/bin/php5-cgi
[ID] 11595 0.0 0.4 15220 4752 ? Ss 08:26 0:00 /usr/bin/php5-cgi
[ID] 11596 0.1 1.2 24800 14680 ? S 08:26 0:02 /usr/bin/php5-cgi
[ID] 11597 0.2 1.2 25020 14900 ? S 08:26 0:03 /usr/bin/php5-cgi
[ID] 11598 0.2 1.2 25076 14956 ? S 08:26 0:03 /usr/bin/php5-cgi
[ID] 11600 0.1 1.2 25080 14964 ? S 08:26 0:02 /usr/bin/php5-cgi

Lets say it will treat all of them as FCGId - Why we have 10 processes if the sum of all PHP_FCGI_CHILDREN is 7 in all the php5.fcgi configuration files?

Howdy Angel,

I dunno! mod_fcgid is a bit of a mystery to me. :wink:

Maybe this has something to do with it:

http://bugs.php.net/bug.php?id=40286

So, it seems like maybe specifying any PHP_FCGI_CHILDREN can cause problems with buggy PHP versions. Problematic.