mod_fcgid: can't apply process slot for /home/domain.com/public_html/install.php

In website options I am using fcgid and apache gave me error "mod_fcgid: can't apply process slot for /home/domain.com/public_html/install.php" when I try to install drupal. It seems FcgidMaxProcesses/MaxProcessCount are set too low but where do I change them or where do I add them if they are not in place on CentOS?

Status: 
Active

Comments

Howdy -- on CentOS, you can set those options in /etc/httpd/conf.d/fcgid.conf.

After changing that file, you'd want to restart Apache, which you can do with this command:

/etc/init.d/httpd restart

This is the file content is like this:

This is the Apache server configuration file for providing FastCGI support through mod_fcgid

#

Documentation is available at http://fastcgi.coremail.cn/doc.htm

LoadModule fcgid_module modules/mod_fcgid.so

Use FastCGI to process .fcg .fcgi & .fpl scripts Don't do this if mod_fastcgi is present, as it will try to do the same thing

AddHandler fcgid-script fcg fcgi fpl

If I change it to the following apache sends error and does not start: Options -Indexes FollowSymLinks +ExecCGI AllowOverride AuthConfig FileInfo AddHandler php5-fastcgi .php Action php5-fastcgi /cgi-bin/php.fcgi DirectoryIndex index.php index.html Order allow,deny Allow from all

Regarding /home/compusimple.com.mx/fcgid-bin/php5.fcgid this was the previous value:

!/bin/bash

PHPRC=$PWD/../etc/php5 export PHPRC umask 022 export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=99999 export PHP_FCGI_MAX_REQUESTS SCRIPT_FILENAME=$PATH_TRANSLATED export SCRIPT_FILENAME exec /usr/bin/php-cgi

it was changed to:

!/bin/bash Shell Script To Run PHP5 using mod_fastcgi under Apache 2.x Tested under Red Hat Enterprise Linux / CentOS 5.x

Set PATH

PHP_CGI=/usr/bin/php-cgi PHP_FCGI_CHILDREN=4 PHP_FCGI_MAX_REQUESTS=1000

no editing below

export PHP_FCGI_CHILDREN export PHP_FCGI_MAX_REQUESTS exec $PHP_CGI

is only the path the error and what would be the right one? or what shall i do in this case?

The FcgidMaxProcesses setting is an Apache setting, so you would want to add that to the /etc/httpd/conf.d/fcgid.conf file.

The default is 1000, you may want to try with a setting that's higher than that.

Alternatively (or in addition to that), you can also lower "FcgidProcessLifeTime", which defaults to an hour. Lowering the process lifetime would reduce the chance of hitting "FcgidMaxProcesses".

You can find all those options documented here:

http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html