douyabu1528 2015-11-27 16:24
浏览 351

在Windows 10上运行NginX和PHP(CGI) - 未指定输入文件

I want to setup a web dev environment on my Windows 10 PC. On my 2nd hard drive (D:\WebDev) I have the following:

enter image description here

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
ginx-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? Sorry if this question is in the wrong site.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器