Install nginx and php on Window with hidden console

Standard

1. Download nginx & PHP for window
2. Unzip file and copy to your path such as c:\nginx , c:\nginx\php
3. modify nginx config  (nginx\conf\nginx.conf)

location ~ \.php$ {
      root            html;
      fastcgi_pass    127.0.0.1:9000;
      fastcgi_index   index.php;
      fastcgi_param   SCRIPT_FILENAME c:/nginx/html/$fastcgi_script_name;
      include         fastcgi_params;
 }
4. Download HiddenConsole for start php-cgi.exe in background
5. Create Start.bat and Stop.bat
@ECHO OFF
start c:\nginx\nginx.exe
RunHiddenConsole.exe c:\nginx\php\php-cgi.exe -b 127.0.0.1:9000 -c c:\nginx\php\php.ini
ping 127.0.0.1 -n 1>NUL
echo .
echo ..
echo ...
ping 127.0.0.1 >NUL
EXIT
@ECHO OFF
taskkill /f /IM nginx.exe
taskkill /f /IM php-cgi.exe
EXIT
6. Double Click Start.bat to start nginx
7. Create PHP file to test
<?php
    echo phpinfo();
?>

Ref.
http://wiki.nginx.org/PHPFastCGIOnWindows
https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04