Hello Jo
I have a a few qestions an suggestions for fcgi. I wonder why there should be 4 children for every site visitor. Becaus when you got a lot of connections and domains this consumes a lot of memory for every single visitor. I commented PHP_FCGI_CHILDREN out and had no problem with this configuration. So every user has got one single php5-cgi process now.
#!/bin/sh
PHPRC=$PWD/…/etc/php5
export PHPRC
PHP_FCGI_CHILDREN=4
export PHP_FCGI_CHILDREN
SCRIPT_FILENAME=$PATH_TRANSLATED
export SCRIPT_FILENAME
exec /usr/bin/php5-cgi
another question why are there phpx.fcgi files in the home/domain/public_html folder and in the home/domain/fcgi-bin/, why are they needed in both folders? And how can i set a standard conf file for creating new domains. Becaus i don’t want to comment PHP_FCGI_CHILDREN=4 out every time i switch my php versions or when i create new domains
by the way do you think there is potential for tuning the etc/apache/enabled-modules/fcgid.conf file a bit? Maybe Then the /etc/webmin/virtual-server/fcgiclear.pl is not needed anymore
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
SocketPath /var/lib/apache2/fcgid/sock
IPCConnectTimeout 20
DefaultInitEnv RAILS_ENV production
IdleTimeout 60
ProcessLifeTime 6000
MaxProcessCount 32
DefaultMaxClassProcessCount 2
IPCConnectTimeout 6
IPCCommTimeout 6
</IfModule>
i found this config when searching the net i think that woul be interesting. The standard fcgid.conf looks like that:
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
SocketPath /var/lib/apache2/fcgid/sock
IPCConnectTimeout 20
</IfModule>
i don’t know maybe thats all stupid an shit what im talkin about but i could not find any “serious” documentations about that config files
regards Martin