![]() |
#1 |
Junior Member
Join Date: Jan 2010
Posts: 7
![]() |
![]()
Having timeout issues with fasqtcgi and apache. Getting timeout errors as follows:
[warn] (110)Connection timed out: mod_fcgid: ap_pass_brigade failed in handle_request function [warn] mod_fcgid: read data timeout in 40 seconds Even though my fastcgi config file has been updated it doesn't seem to make a difference. This could be related to APC. <IfModule mod_fcgid.c> AddHandler fcgid-script .fcgi IdleTimeout 300 **MaxProcessCount 200 **DefaultMinClassProcessCount 1 **DefaultMaxClassProcessCount 25 **IPCConnectTimeout 20 **IPCCommTimeout 120 **IdleScanInterval 120 </IfModule> I found this posting below that may be related, although I don't know how this would affect my virtual host settings inside ISPManager Pro The mod_fcgid parameters are wiped out per VirtualHost, so your global settings are ignored. See http://jay.vox.com/library/post/mod_fcgi...tings.html |
![]() |
![]() |
![]() |
#2 |
ISPsystem team
Join Date: May 2008
Location: ISPsystem
Posts: 588
![]() |
![]()
See http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
IPCCommTimeout is old and depricated, you need use FcgidIOTimeout more than 40 seconds, but if you have old version mod_fcgid increase IPCCommTimeout |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Jan 2010
Posts: 7
![]() |
![]()
Thanks Slava, found another issue. I been trying to change my max_execution_time values and php memory setting in the php.ini files. I have changed them in every php.ini file I could find even the ones referenced in my phpinfo file info listed below. Any ideas?
CGI/FastCGI Virtual Directory Support disabled Configuration File (php.ini) Path /etc/php5/cgi Loaded Configuration File /var/www/tammany/data/php-bin/php.ini Scan this dir for additional .ini files /etc/php5/cgi/conf.d additional .ini files parsed /etc/php5/cgi/conf.d/apc.ini, /etc/php5/cgi/conf.d/curl.ini, /etc/php5/cgi/conf.d/gd.ini, /etc/php5/cgi/conf.d/mcrypt.ini, /etc/php5/cgi/conf.d/mysql.ini, /etc/php5/cgi/conf.d/mysqli.ini, /etc/php5/cgi/conf.d/pdo.ini, /etc/php5/cgi/conf.d/pdo_mysql.ini |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Jan 2010
Posts: 7
![]() |
![]()
The only thing in that file is this:
sendmail_path = "/usr/sbin/sendmail -t -i -f my@email.com" session.save_path = "/var/www/tammany/data/bin-tmp" max_execution_time*= 1800 memory_limit = 64M When my make these changes to the execution time and memory limit in this file the changes are not seen in the phpinfo. |
![]() |
![]() |
![]() |
#7 |
Junior Member
Join Date: Jan 2010
Posts: 7
![]() |
![]()
I was taking a look at my ngnix config file generated by ISP manager. The file does not reference the fastcgi_params config file which I believe is used for fastcgi php. I don't see any php specific parameters in my nginx config file which I am listing below. Doesn't this need to be updated to reference php directly
user www-data; worker_processes 5; error_log /var/log/nginx/error.log; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; access_log /var/log/nginx/access.log; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 120; tcp_nodelay on; gzip on; include /etc/nginx/sites-enabled/*; client_max_body_size 16m; server { listen xx.xx.45.171:80; server_name mysite.com www.mysite.com myweb.othersite.net; rewrite ^(/manager/.*)$ https://$host$1 permanent; location ~* ^/(webstat/|awstats|webmail/|myadmin/|manimg/) { proxy_pass http://xx.xx.45.171:8080; proxy_redirect http://mysite.com:8080/ /; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; } location / { proxy_pass http://xx.xx.45.171:8080; proxy_redirect http://mysite.com:8080/ /; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; } location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|av i|zip|gz|bz2?|rar)$ { root /var/www/mysite/data/www/mysite.com; access_log /var/www/httpd-logs/mysite.com.access.log; error_page 404 = @fallback; } location @fallback { proxy_pass http://xx.xx.45.171:8080; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; } } |
![]() |
![]() |
![]() |
#8 |
Junior Member
Join Date: Feb 2010
Location: Bangladesh
Posts: 1
![]() |
![]()
All was fine until I installed phpmyadmin. I selected my apache2 server for that install but later discovered I should have selected lighttpd. Even after removing phpmyadmin, any further installations didn't provide that option anymore.
__________________
online jobs at home Last edited by netlog; 03-08-2012 at 01:46 PM. |
![]() |
![]() |
![]() |
#9 | |
Junior Member
Join Date: Jun 2009
Posts: 1
![]() |
![]() Quote:
#!/bin/sh PHPRC="." export PHPRC exec /usr/bin/php-cgi and restart apache |
|
![]() |
![]() |
![]() |
Tags |
apache, cgi, fastcgi |
Thread Tools | |
|
|