phpstudy使用fcgid脚本映射实现php多版本共存,phpstudyfcgid
如果使用phpStudy_2016.11.03已经开启了fcgid的就不需要这步操作,没有开启需要fcgid修改httpd.conf最底部增加如下:
LoadModule fcgid_module modules/mod_fcgid.so AddHandler fcgid-script .fcgi .php Include conf/extra/httpd-php-fcgid53.conf #httpd-php-sapi52.conf新增站点后,修改vhosts.conf
<VirtualHost *:80> DocumentRoot "D:\phpStudy\WWW\php56" ServerName localhost ServerAlias FcgidInitialEnv PHPRC "D:/phpStudy/php56n/" FcgidWrapper "D:/phpStudy/php56n/php-cgi.exe" .php <Directory "D:\phpStudy\WWW\php56"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>访问看看,已经好了
PHP之友评论