Reputation: 1213
On my server I run different versions of various CMS (: Joomla, Wordpress, Drupal) because of customizations that prevent to update them all to the latest version. For Drupal 7.x I would like to run php 5.3 while the other sites are fine with php 5.2. Is there any way to configure apache in such a way so that the virtual hosts that run the Drupal 7 are with php 5.3?
Upvotes: 2
Views: 2079
Reputation: 5558
# 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>
Upvotes: 1