windows nginx php mysql 搭建加载php扩展失败

 windows下nginx php mysql  创建启动脚本

启动:

@echo off

set PHP_FCGI_MAX_REQUESTS=1000

echo Starting PHP FastCGI…

RunHiddenConsole.exe "D:\Program Files\wnmp\php-5.2\php-cgi.exe" -b 127.0.0.1:9000 -c "D:\Program Files\wnmp\php-5.2\php.ini"

echo Start Nginx

RunHiddenConsole.exe "D:\Program Files\wnmp\nginx-1.2.2\nginx.exe"

exit

 

停止:

@echo off

echo Stopping nginx...

taskkill /F /IM nginx.exe >nul

echo Stopping PHP FastCGI...

taskkill /F /IM php-cgi.exe >nul

exit

 

期间多次出现加载php扩展失败的情况,启动没有任何报错,后来在下面语句中涉及路径的地方加上英文双引号,启动后加载成功

RunHiddenConsole.exe "D:\Program Files\wnmp\php-5.2\php-cgi.exe" -b 127.0.0.1:9000 -c "D:\Program Files\wnmp\php-5.2\php.ini"

你可能感兴趣的:(PHP,nginx,扩展)