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

我想在Windows 10 PC上设置Web开发环境。 在我的第二个硬盘驱动器( D:\ WebDev </ code>)上,我有以下内容:</ p>

</ p>

这就是我的NginX的配置方式: http://pastebin.com /raw.php?i=JFSX6hfU </ p>

所以,这是我的 start.bat </ strong>文件的内容:</ p>
\ n

  @ECHO OFF 
set PATH = D:\ WebDev \ php-5.6.16;%PATH%

ECHO开始...

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 -f ile = D:\ WebDev \ mariadb-10.1.9 \ my.ini --standalone --console

cd D:\ WebDev
ginx-1.9.7&amp;&amp; START / B nginx.exe&amp;&amp; cd ..
</ code> </ pre>


这是基于 https://stackoverflow.com/questions/15819351/can-windows-php-fpm-serve-multiple-simultaneous-requests/33032959 = </ em> </ p>
</ blockquote>

当我运行 start.bat </ code>文件时,NginX和MariaDB正在获取 开始(我已通过访问 http:// localhost </ code>验证,我可以看到 index.html </ code>正在服务),我可以连接到MariaDB服务器(mysql) Navicat。</ p>

唯一不起作用的是PHP。 首先,我在任务管理器中看不到任何PHP进程,当我访问 phpinfo()</ code>页面时,我收到错误:</ p>


否 输入文件指定。</ p>
</ blockquote>

知道可能出错的地方吗? 对不起,如果这个问题在错误的网站上。</ p>
</ div>

展开原文

原文

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.

duanmei1885
duanmei1885 还在等待...没有消息但对不起。
4 年多之前 回复
dsu89430
dsu89430 关于那个的任何消息?我有同样的问题
4 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐