Summary: | www-servers/apache-2.4.10 APACHE2_MODULES=proxy_fcgi - intermittent errors about missing PHP files | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tomáš Mózes <hydrapolic> |
Component: | [OLD] Server | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | php-bugs |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Tomáš Mózes
2014-07-25 08:54:11 UTC
The interesting lines: [Fri Jul 25 10:41:07.796028 2014] [proxy_fcgi:error] [pid 6925] [client 127.0.0.1:36358] AH01071: Got error 'Primary script unknown\n' vs [Fri Jul 25 10:41:10.435486 2014] [proxy_fcgi:error] [pid 6923] [client 127.0.0.1:36364] AH01071: Got error 'Primary script unknown\nX-Powered-By: PHP/5.5.14-pl0-gentoo\r\nContent-type: text/html\r\n\r\nFile not found.\n' Bug report upstream: https://issues.apache.org/bugzilla/show_bug.cgi?id=56858 And a patch: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_fcgi.c?r1=1612068&r2=1618401&diff_format=h Tested to work on amd64 with the patch --- apache-2.4.10-r1.ebuild 2014-08-10 22:31:18.000000000 +0200 +++ apache-2.4.10-r2.ebuild 2014-10-23 10:54:39.708815000 +0200 @@ -133,6 +133,12 @@ apache-2_pkg_setup } +src_prepare() { + epatch "${FILESDIR}/mod_proxy_fcgi_fix.patch" + + apache-2_src_prepare +} + src_configure() { # Brain dead check. tc-is-cross-compiler && export ap_cv_void_ptr_lt_long="no" mod_proxy_fcgi_fix.patch --- modules/proxy/mod_proxy_fcgi.c.orig 2014-06-26 00:24:44.000000000 +0000 +++ modules/proxy/mod_proxy_fcgi.c 2014-10-20 12:38:20.982672886 +0000 @@ -663,7 +663,7 @@ /* TODO: Should probably clean up this logging a bit... */ if (clen) { ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01071) - "Got error '%s'", iobuf); + "Got error '%.*s'", (int)readbuflen, iobuf); } if (clen > readbuflen) { Fixed in 2.14.12. Great, thanks for keeping track of this upstream! *apache-2.4.12 (04 Feb 2015) 04 Feb 2015; Lars Wendler <polynomial-c@gentoo.org> +apache-2.4.12.ebuild: Security bump (bug #538182). |