2 posts / 0 new
Last post
#1 Tue, 08/14/2007 - 04:46
gte451f

PHP5 only

(I've read the new PHP Architecture, http://www.virtualmin.com/component/option,com_openwiki/Itemid,48/id,php...) and I hate to be a Luddite but can I setup Virtualmin to use one copy of PHP5 as mod_php and remove PHP4 for my Debian install?

I am running this box without any need to customize php per domain and I have reason to believe running php as a fcgi script causes Apache to crash every couple of hours. (At least in my environment)

The idea of security/customizability sounds great but all these config files and php version are making my head spin.

Jim<br><br>Post edited by: JimJenkins, at: 2007/08/14 04:58

Wed, 08/15/2007 - 05:07
gte451f

So, I've discovered a few interesting things about Webmin. We can specify what flavor of PHP is used on a site by site basis. Either FCGI, mod_php or plain old CGI. That is pretty cool! I'm going to try FCGI for the time being since that is the recommended approach.

One thing still puzzle's me. Can we just remove or disable PHP4? I have this nagging feeling it is using memory on my VPS!

One more thing still puzzles me. My error.log file is full of these entries...
<div class='quote'>
[notice] mod_fcgid: process 7990 going graceful shutdown, sending SIGTERM
[notice] mod_fcgid: call /home/domainX/public_html/index.php with wrapper /home/domainX/fcgi-bin/php5.fcgi
[notice] mod_fcgid: server /home/domainX/public_html/index.php(8097) started
[notice] mod_fcgid: process /home/domainX/public_html/index.php(7990) exit(communication error), terminated by calling exit(), return code: 0
[notice] mod_fcgid: process 8097 going graceful shutdown, sending SIGTERM
[notice] mod_fcgid: process /home/domainX/public_html/index.php(8097) exit(communication error), terminated by calling exit(), return code: 0
[notice] mod_fcgid: call /home/domainX/public_html/index.php with wrapper /home/domainX/fcgi-bin/php5.fcgi
[notice] mod_fcgid: server /home/domainX/public_html/index.php(8104) started
[notice] mod_fcgid: call /home/domainY/domains/friendsofymca.org/public_html/index.php with wrapper /home/domainY/domains/domainY.org/fcgi-bin/php5.fcgi
[notice] mod_fcgid: server /home/domainY/domains/friendsofymca.org/public_html/index.php(8122) started
[notice] mod_fcgid: server /home/domainY/domains/friendsofymca.org/public_html/index.php(8122) started
[notice] mod_fcgid: process 8104 going graceful shutdown, sending SIGTERM
[notice] mod_fcgid: call /home/domainX/public_html/index.php with wrapper /home/domainX/fcgi-bin/php5.fcgi
[notice] mod_fcgid: server /home/domainX/public_html/index.php(8151) started
</div>

So each process is getting killed but only for domainX, but why?&lt;br&gt;&lt;br&gt;Post edited by: JimJenkins, at: 2007/08/15 05:14

Topic locked