Php With Nginx

Discussion in 'Gaming' started by .ZERO, May 4, 2009.

  1. .ZERO

    .ZERO Well-Known Member

    Posts:
    2,220
    Likes Received:
    1
    Joined:
    May 28, 2006
    Location:
    #gamerenders
    Not sure if anyone will be able to help with this but its worth a shot.
    For several reasons i'm migrating apache to nginx but PHP doesn't have an auto config for it so i'm having to do it manually, this is where the problems are starting. Any php page gives me the "No input file specified." message.

    DIR
    Code:
    D:/Nginx
    >Conf
    >HTML
    >PHP
    >SQL
    nginx.conf
    Code:
            # pass the PHP scripts to FastCGI server listening on 127.0.0.1:10000
            #
            location ~ \.php$ {
                root           html;
                fastcgi_pass   127.0.0.1:10000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  /conf$fastcgi_script_name;
                include        fastcgi_params;
            }
    Startup.bat
    Code:
    @ECHO OFF
    ECHO Starting PHP FastCGI...
    RunHiddenConsole.exe D:\nginx\PHP\php-cgi.exe -b 127.0.0.1:10000 -n
    ECHO Starting Nginx...
    RunHiddenConsole.exe D:\nginx\nginx.exe
    ECHO Starting MySQL...
    RunHiddenConsole.exe "D:\nginx\SQL\bin\mysqld-nt" --defaults-file="D:\nginx\SQL\my.ini"
    SLEEP 1
    EXIT

    Ideally, I want NGX to serve the whole load not just as a static with a apache backend but its always the last resort...
     

Share This Page