apache配置多个版本php

参看链接:http://my.oschina.net/u/2366984/blog/543148?p={{page}}

主要虚拟主机配置信息

FcgidInitialEnv PHPRC "D:/phpstudy/php55n"   指定php目录

AddHandler fcgid-script .php

FcgidWrapper "D:/phpstudy/php55n/php-cgi.exe" .php   指定php版本

 

具体配置信息:

<VirtualHost *:80>

<VirtualHost *:80>
DocumentRoot "D:\phpstudy\www1"
ServerName www.site1.com
ServerAlias site1.com
FcgidInitialEnv PHPRC "D:/phpstudy/php55n"
AddHandler fcgid-script .php
FcgidWrapper "D:/phpstudy/php55n/php-cgi.exe" .php
<Directory "D:\phpstudy\www1">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>

 

posted @ 2016-08-21 17:26  虽不能至,心向往之。  阅读(3016)  评论(0编辑  收藏  举报