naviat
5/30/2018 - 9:19 AM

Quick startup for NGINX and PHP on Windows

Quick startup for NGINX and PHP on Windows

@ECHO OFF
taskkill /f /IM nginx.exe
taskkill /f /IM php-cgi.exe
EXIT /b
@ECHO OFF

pushd C:\nginx

ECHO Starting PHP FastCGI...
RunHiddenConsole.exe "C:\php\php-cgi.exe" -b 127.0.0.1:9000 -c "C:\php\php.ini"

ECHO Starting NGINX
start nginx.exe

popd
EXIT /b
@ECHO OFF
call nginx-stop.bat
call nginx-start.bat
EXIT /b