Created
January 22, 2021 04:50
-
-
Save parag60288/bb9cb751f3a79d7f338f4d9ae553fe36 to your computer and use it in GitHub Desktop.
Quick startup for NGINX and PHP on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
call nginx-stop.bat | |
call nginx-start.bat | |
EXIT /b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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