I want to setup a web dev environment on my Windows 10 PC. On my 2nd hard drive (D:\WebDev
) I have the following:
This is how my NginX is configured: http://pastebin.com/raw.php?i=JFSX6hfU
So, this is the contents of my start.bat file:
@ECHO OFF
set PATH=D:\WebDev\php-5.6.16;%PATH%
ECHO Starting...
RunHiddenConsole.exe D:\WebDev\php-5.6.16\php-cgi.exe -b 127.0.0.1:9000
RunHiddenConsole.exe D:\WebDev\php-5.6.16\php-cgi.exe -b 127.0.0.1:9001
RunHiddenConsole.exe D:\WebDev\php-5.6.16\php-cgi.exe -b 127.0.0.1:9002
RunHiddenConsole.exe D:\WebDev\php-5.6.16\php-cgi.exe -b 127.0.0.1:9003
RunHiddenConsole.exe D:\WebDev\php-5.6.16\php-cgi.exe -b 127.0.0.1:9004
RunHiddenConsole.exe D:\WebDev\mariadb-10.1.9\bin\mysqld --defaults-file=D:\WebDev\mariadb-10.1.9\my.ini --standalone --console
cd D:\WebDev\nginx-1.9.7 && START /B nginx.exe && cd ..
This was put together based on https://stackoverflow.com/questions/15819351/can-windows-php-fpm-serve-multiple-simultaneous-requests/33032959#=
When I run start.bat
file, NginX and MariaDB is getting started (i've verified by visiting http://localhost
and I can see the index.html
being served) and I can connect to the MariaDB Server (mysql) with Navicat.
The only thing that isn't working is the PHP. Firstly, I cannot see any PHP processes in the task manager and when I visit phpinfo()
page, I get the error:
No input file specified.
Any idea what might be wrong?
RunHiddenConsole.exe
but is yourstart.bat
script in the same directory asRunHiddenConsole.exe
? Note, also, you'vecd
'd into your nginx folder at the very end of yourstart.bat
, you may need to CD into whereverRunHiddenConsole.exe
isRunHiddenConsole.exe
is in the same dirstart.bat
is in. It's working fine for mysqld. just not for php.9000
) and whilst it was running, I changed the nginx config and instead of using a upstream, explitly pointed to ip:port and started nginx to see if it works, it did not. Tested the same thing on windows 7 (works fine). I am running Avira antivirus, could this be blocking PHP somehow?