是否可以为不同的虚拟主机运行不同的php版本?


Is it possible to run different php versions for different virtual hosts?

在我的服务器上,我运行不同版本的各种CMS (: Joomla, Wordpress, Drupal),因为自定义阻止将它们全部更新到最新版本。对于Drupal 7。x我想运行php 5.3,而其他网站与php 5.2都很好。有没有办法配置apache,使运行Drupal 7的虚拟主机使用php 5.3?

# Per VirtualHost Config 
<VirtualHost *:80> 
 DocumentRoot /Apache22/htdocs/fcgi 
 ServerName fcgi.local 
 ErrorLog logs/fcgi.error.log 
 CustomLog logs/fcgi.access.log common 
 <Directory "/Apache22/htdocs/fcgi"> 
     SetEnv PHPRC "c:/php" 
     AddHandler fcgid-script .php 
     Options Indexes FollowSymLinks ExecCGI 
     FcgidWrapper "C:/php/php-cgi.exe" .php 
     AllowOverride all 
     Order allow,deny 
     Allow from all 
     Satisfy any 
 </Directory> 
</VirtualHost>