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>

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM