Problems with fastcgi php migration

Maxim Dounin mdounin at mdounin.ru
Sat Mar 15 21:02:13 MSK 2008


Hello!

On Sat, Mar 15, 2008 at 11:56:25AM -0400, Ian M. Evans wrote:

> Banging my head on the desk here. I added 'test' to the list of filenames 
> that can be extensionless. Placed it a few subdirs down.
>
> All 'test' contains is the phpinfo();
>
> When I go to /academy/80/test, the phpinfo() comes up. Here are the params 
> from the nginx debug:
>
> Parameters from working page:
> 30680#0: *1174 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1"
> 30680#0: *1174 fastcgi param: "SERVER_SOFTWARE: nginx"
> 30680#0: *1174 fastcgi param: "QUERY_STRING: "
> 30680#0: *1174 fastcgi param: "REQUEST_METHOD: GET"
> 30680#0: *1174 fastcgi param: "CONTENT_TYPE: "
> 30680#0: *1174 fastcgi param: "CONTENT_LENGTH: "
> 30680#0: *1174 fastcgi param: "DOCUMENT_URI: /academy/80/test"
> 30680#0: *1174 fastcgi param: "DOCUMENT_ROOT: /usr/local/apache/htdocs"
> 30680#0: *1174 fastcgi param: "SCRIPT_FILENAME: 
> /usr/local/apache/htdocs/academy/80/test"
> 30680#0: *1174 fastcgi param: "PATH_INFO: "
> 30680#0: *1174 fastcgi param: "REDIRECT_STATUS: 200"
>
> Great. Scriptname is correct. Root's correct. Path_info is empty. It works.
>
> Now I called /academy/80/test/12
>
> phpinfo() should come up and the only major change is that path_info should 
> be 12.
>
> The debug logs show that it's passing a path_info of /12
> The script filename is correct. But phpinfo() doesn't run.
>
[...]
> 30680#0: *1202 fastcgi param: "SCRIPT_FILENAME: 
> /usr/local/apache/htdocs/test"

Looks like you've got wrong SCRIPT_FILENAME. At least - this 
differs from the one in the above request.

Maxim Dounin





More information about the nginx mailing list