php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61120 FPM/FastCGI fails to construct file location
Submitted: 2012-02-17 10:09 UTC Modified: 2012-02-22 14:08 UTC
From: psimms at tomenserv dot dyndns dot org Assigned:
Status: Closed Package: FPM related
PHP Version: 5.3.10 OS: Linux 3.x
Private report: No CVE-ID: None
 [2012-02-17 10:09 UTC] psimms at tomenserv dot dyndns dot org
Description:
------------
System: openSUSE 12.1, php 5.3.8

Using mod_proxy_fcgi from apache 2.3.16, an Apache server is configured to contact php-fpm and/or php-cgi for PHP files. On opening http://localhost/index.php [which maps to /srv/www/htdocs/index.php in the filesystem], proxy_fcgi constructs a request (see attachment) and forwards it to fpm. fpm responds with error 404, despite the file being in existence.
fpm seems to ignore DOCUMENT_ROOT.

Expected result:
----------------
Execute the file /srv/www/htdocs/index.php.


Actual result:
--------------
fpm returns a HTTP 404 error. (The same occurs when using php-cgi -b instead of php-fpm.)

Patches

raw (last revision 2012-02-17 10:09 UTC by psimms at tomenserv dot dyndns dot org)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-22 14:08 UTC] psimms at tomenserv dot dyndns dot org
Close as not-a-bug. Apparently one is supposed to make apache put the document root into SCRIPT_FILENAME. Oh well, good to know.
 [2012-02-22 14:08 UTC] psimms at tomenserv dot dyndns dot org
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 01:01:30 2024 UTC