下载了php5.3和php7.0 的nginx包,复制里面的PHP5目录到根
可以单独启动成功,但是如何同时启动2个版本的cgi呢? 修改了php7\phpfpm\winsw.xml <?xml version="1.0" encoding="utf-8"?> <service> <id>UPUPW_PHPFPM</id> <name>UPUPW_PHPFPM</name> <description>用于支持PHP-FastCGI随服务启动</description> <executable>C:/upupw_n7/PHP5/phpfpm.exe</executable> <logpath>C:/upupw_n7/PHP5/phpfpm/</logpath> <logmode>roll</logmode> <depend></depend> <startargument>"C:/upupw_n7/PHP5/php-cgi.exe -c C:/upupw_n7/PHP5/php.ini" -n 2 -i 127.0.0.1 -p 9053</startargument> <stopargument></stopargument> </service> <service> <id>UPUPW_PHPFPM2</id> <name>UPUPW_PHPFPM2</name> <description>用于支持PHP-FastCGI随服务启动</description> <executable>C:/upupw_n7/PHP7/phpfpm.exe</executable> <logpath>C:/upupw_n7/PHP7/phpfpm/</logpath> <logmode>roll</logmode> <depend></depend> <startargument>"C:/upupw_n7/PHP7/php-cgi.exe -c C:/upupw_n7/PHP7/php.ini" -n 2 -i 127.0.0.1 -p 9070</startargument> <stopargument></stopargument> </service> |
|