Skip to content

Instantly share code, notes, and snippets.

@wahidisna
Created January 3, 2021 00:33
Show Gist options
  • Save wahidisna/d6055df7a1f40f18e2488e3f7cda7c51 to your computer and use it in GitHub Desktop.
Save wahidisna/d6055df7a1f40f18e2488e3f7cda7c51 to your computer and use it in GitHub Desktop.
Quick startup for NGINX and PHP on Windows
@ECHO OFF
call nginx-stop.bat
call nginx-start.bat
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
taskkill /f /IM nginx.exe
taskkill /f /IM php-cgi.exe
EXIT /b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment