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 用matlab 设计一个不动点迭代法求解非线性方程组的代码
    • ¥15 牛顿斯科特系数表表示
    • ¥15 arduino 步进电机
    • ¥20 程序进入HardFault_Handler
    • ¥15 oracle集群安装出bug
    • ¥15 关于#python#的问题:自动化测试
    • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
    • ¥15 教务系统账号被盗号如何追溯设备
    • ¥20 delta降尺度方法,未来数据怎么降尺度
    • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效