PHP sub-process handling is not working well so we want turn off it.
Problem: System Settings -> Features and Plugins -> Server Templates Default FCGId PHP sub-processes can't set to 0.
and if i set it to none then one row generated to the php5.fcgi files: "export PHP_FCGI_CHILDREN" but we do not give value to PHP_FCGI_CHILDREN variable anywhere and we don't know what is the exact effect of this.
Webmin help said "Setting it to None will cause PHP processes to be launched only as needed on demand, and to be cleaned up after some period of inactivity."
more details: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
"PHP child process management (PHP_FCGI_CHILDREN) should always be disabled with mod_fcgid, which will only route one request at a time to application processes it has spawned; thus, any child processes created by PHP will not be used effectively. (Additionally, the PHP child processes may not be terminated properly.) By default, and with the environment variable setting PHP_FCGI_CHILDREN=0, PHP child process management is disabled."
So please help to clear out this situation.
thanks Lawrence
Comments
Submitted by smartvirtualmin on Thu, 06/17/2010 - 10:45 Comment #1
i find out we can define own PHP wrappers in System Settings -> Server Templates -> PHP wrapper scripts. maybe that can be our way?
anyway i try it and define a FastCGI wrapper for PHP 4 and try incrase the PHP_FCGI_MAX_REQUESTS=5000 export PHP_FCGI_MAX_REQUESTS
but it had no effect virtualmin still generate the original config file.
Submitted by smartvirtualmin on Thu, 06/17/2010 - 11:05 Comment #2
it's me again :)
"FastCGI wrapper for PHP 4" is worked fine for top level domain.
But if i use sub-server tempalte (not the default one) it not working:
problem: FastCGI wrapper for PHP 4 1. Automatically generated 2. From default settings
3. Script below ..
i want user 2. option.
i set it up -> save -> no error message
i go back -> option 1 is selected again.
so this is why now effect on the subserver :-(
Default subserver template can be modified but other on can't.
i change category to "bug report".
Submitted by JamieCameron on Thu, 06/17/2010 - 17:37 Comment #3
So if
PHP_FCGI_CHILDREN
is not set, the default will be used, which is to not start any child processes.I will look into the other part of the bug..
Submitted by JamieCameron on Thu, 06/17/2010 - 19:45 Comment #4
Ok, I see the cause of that template PHP issue, and will fix it in the 3.80 Virtualmin release.
The work-around is to edit the template's file under /etc/webmin/virtual-server/templates , and remove the
php4fcgi
line.Submitted by smartvirtualmin on Fri, 06/18/2010 - 12:12 Comment #5
solution worked perfectly
Submitted by Issues on Fri, 07/02/2010 - 12:19 Comment #6
Automatically closed -- issue fixed for 2 weeks with no activity.