MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: onemanarmy on 2013-03-08, 04:17:40

Title: http error (fcgid problem)
Post by: onemanarmy on 2013-03-08, 04:17:40
mod_fcgid: can't apply process slot for /home/httpd/domain.com/php5.fcgi


i am using nginxproxy - php53u - fcgid_event.
Title: Re: http error
Post by: MRatWork on 2013-03-08, 10:09:29
Try:

1. copy '/home/apache/etc/conf.d/fcgid.conf' to '/home/apache/etc/conf.d/custom.fcgid.conf'

2. modified custom file where:
Code: [Select]
### MR -- read /usr/local/lxlabs/kloxo/file/apache/conf.d/fcgid.conf.original for full description ###

LoadModule fcgid_module modules/mod_fcgid.so

AddHandler fcgid-script fcg fcgi fpl
FcgidIPCDir /var/run/mod_fcgid
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm

# MR -- the same as fastcgi also running suphp
#LoadModule suphp_module modules/mod_suphp.so

#suPHP_Engine On

#PHP_Fix_Pathinfo_Enable 1

Code: [Select]
### MR -- read /usr/local/lxlabs/kloxo/file/apache/conf.d/fcgid.conf.original for full description ###

LoadModule fcgid_module modules/mod_fcgid.so

AddHandler fcgid-script fcg fcgi fpl
FcgidIPCDir /var/run/mod_fcgid
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm

MaxRequestsPerProcess 1000
MaxProcessCount 10
IPCCommTimeout 120
IdleTimeout 120

# MR -- the same as fastcgi also running suphp
#LoadModule suphp_module modules/mod_suphp.so

#suPHP_Engine On

#PHP_Fix_Pathinfo_Enable 1


If RAM 1GB set 'MaxProcessCount 10' until 'MaxProcessCount 20' (depend on primary apps). If RAM 8 set 'MaxProcessCount 80' until 'MaxProcessCount 160'  (depend on primary apps).

3. copy '/home/apache/etc/conf.d/custom.fcgid.conf' '/etc/httpd/conf.d/fcgid.conf'

4. After that, run 'sh /script/restart-services'.
Title: Re: http error (fcgid problem)
Post by: onemanarmy on 2013-03-08, 13:29:20
now

mod_fcgid: read data timeout in 120 seconds

mod_fcgid: can't apply process slot for /home/httpd/domain.com/php5.fcgi
Title: Re: http error (fcgid problem)
Post by: MRatWork on 2013-03-08, 14:09:28
Try disable timeout with:
Code: [Select]
#IPCCommTimeout 120
#IdleTimeout 120
Title: Re: http error (fcgid problem)
Post by: onemanarmy on 2013-03-08, 14:38:43
still mod_fcgid: can't apply process slot for error.
Title: Re: http error (fcgid problem)
Post by: MRatWork on 2013-03-08, 15:47:10
Try 'chmod -R 755 /var/log/httpd'
Title: Re: http error (fcgid problem)
Post by: onemanarmy on 2013-03-08, 17:42:12
1) Connection timed out: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

2) mod_fcgid: read data timeout in 40 seconds