Last active
December 13, 2017 16:24
-
-
Save lotfio/5dcf71cf24fa3cf91cb0f2677fc7f658 to your computer and use it in GitHub Desktop.
Windows batch file to start Nginx Php-fpm and Mysql in one console
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 | |
::mysql | |
pushd C:\WebServer\mariadb\bin | |
START /b mysqld.exe | |
ECHO Starting mysql ...... | |
:: apache2 | |
pushd C:\WebServer\apache\bin | |
START /b httpd.exe | |
ECHO Starting Apache web server ...... | |
::php | |
pushd C:\WebServer\php7.2 | |
START /b php-cgi.exe -b "127.0.0.1:9000" -c "C:\WebServer\php7.2\php.ini" | |
ECHO Starting PHP FastCGI ..... | |
:: nginx web server | |
pushd C:\WebServer\nginx | |
START /b nginx.exe | |
ECHO Starting NGINX web server ...... | |
:: messages if you like as a display ! | |
ECHO keep this console open ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment