Skip to main content

php 5.5.16 (cli), PHP-FPM, Apache2.4, {Any opcache} = proxy_fgci:error Failed to read FastCGI header

Comments

4 comments

  • Mindlash
    Re: php 5.5.16 (cli), PHP-FPM, Apache2.4, {Any opcache} = proxy_fgci:error Failed to read FastCGI he Just an update, but still no fix yes... I had a client call about an issue with not being able to see their files in a non-indexed directory (aka Options +Indexes wasn't working). I commented out the ProxyMatch line, and added a custom conf file which specifically allowed it for that vhost... and that worked. Otherwise, they were getting 404 (as it was looking for a specific index file) -- SO, this raises the question, is the ProxyMatch inadvertantly trying to proxy a .htaccess file? Before this fix, the error_log showed: [proxy_fcgi:error] [pid 1826:tid 2818476912] [client 123.321.121.12:40024] AH01071: Got error 'Primary script unknown\n' ... curious...
    0
  • cPanelMichael
    Re: php 5.5.16 (cli), PHP-FPM, Apache2.4, {Any opcache} = proxy_fgci:error Failed to read FastCGI he Hello :) I see that you are using Mod_FCGI for PHP. Have you made any FCGI configuration changes? Thank you.
    0
  • Mindlash
    Re: php 5.5.16 (cli), PHP-FPM, Apache2.4, {Any opcache} = proxy_fgci:error Failed to read FastCGI he Possibly... I've been all over the place. As they are now: /usr/local/apache/conf/php.conf # Fastcgi configuration for PHP5 LoadModule fcgid_module modules/mod_fcgid.so MaxRequestsPerProcess 500 AddHandler fcgid-script .php5 .php4 .php .php3 .php2 .phtml FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php5 FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php4 FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php3 FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php2 FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .phtml [COLOR="silver">- - - Updated - - - Some other info you may want/need: # httpd -V | grep -A 2 'MPM:' Server MPM: event threaded: yes (fixed thread count) forked: yes (variable process count) httpd.conf # These can be set in WHM under 'Apache Global Configuration' Timeout 100 TraceEnable On ServerSignature Off ServerTokens Full FileETag All StartServers 25 MinSpareServers 25 MaxSpareServers 35 MinSpareServers 25 MaxSpareServers 35 ServerLimit 256 MaxRequestWorkers 200 MaxConnectionsPerChild 12500 KeepAlive On KeepAliveTimeout 5 MaxKeepAliveRequests 100 [COLOR="silver">- - - Updated - - - Current memory: ps -ylC httpd | awk '{x += $8;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}' Apache Memory Usage (MB): 138.809 Average Proccess Size (MB): 15.4232 [COLOR="silver">- - - Updated - - - # httpd -l Compiled in modules: core.c mod_authn_file.c mod_authn_core.c mod_authz_host.c mod_authz_groupfile.c mod_authz_user.c mod_authz_core.c mod_access_compat.c mod_auth_basic.c mod_file_cache.c mod_socache_shmcb.c mod_socache_dbm.c mod_so.c mod_dbd.c mod_include.c mod_filter.c mod_deflate.c http_core.c mod_mime.c mod_log_config.c mod_logio.c mod_env.c mod_expires.c mod_headers.c mod_unique_id.c mod_setenvif.c mod_proxy.c mod_proxy_connect.c mod_proxy_http.c mod_proxy_fcgi.c mod_slotmem_shm.c mod_ssl.c event.c mod_unixd.c mod_status.c mod_autoindex.c mod_info.c mod_suexec.c mod_cgi.c mod_negotiation.c mod_dir.c mod_actions.c mod_userdir.c mod_alias.c mod_rewrite.c
    0
  • Mindlash
    Re: php 5.5.16 (cli), PHP-FPM, Apache2.4, {Any opcache} = proxy_fgci:error Failed to read FastCGI he I'm noticing as well, that I didn't seem to have an event.c directive.... I just added this, and going to see how it does... StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxRequestsPerChild 0
    0

Please sign in to leave a comment.