nginx doesn't parse php request
        Posted  
        
            by 
                lzyy
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by lzyy
        
        
        
        Published on 2010-03-07T02:48:56Z
        Indexed on 
            2011/01/09
            0:53 UTC
        
        
        Read the original article
        Hit count: 256
        
env: ubuntu 9.10 / use gotdeb source / php version 5.3.1 / php5-fpm installed /
php5-fpm is running , and listening 9000 port test by 2 commands below
pgrep php5-fpm
telnet localhost 9000
however if I visit from anthor computer in LAN ,using this address
http://192.168.1.103/index.php
the browser ask me to save this index.php , but if visit index.php , everything goes well
sites-enabled/default file content env: ubuntu 9.10 / use gotdeb source / php version 5.3.1 / php5-fpm installed /
php5-fpm is running , and listening 9000 port test by 2 commands below
pgrep php5-fpm
telnet localhost 9000
however if I visit from anthor computer in LAN ,using this address
http://192.168.1.103/index.php
the browser ask me to save this index.php , but if visit index.html , everything goes well
sites-enabled/default file content
location ~ \.php$ {
    fastcgi_pass 127.0.0.1:9000
    fastcgi_index index.php
    fastcgi_param SCRIPT_FILENAME /var/www/$fastcgi_script_name
    include fastcgi_params
}
© Stack Overflow or respective owner