Skip to content

Instantly share code, notes, and snippets.

@paulodiovani
Created November 14, 2012 11:19
Show Gist options
  • Save paulodiovani/4071604 to your computer and use it in GitHub Desktop.
Save paulodiovani/4071604 to your computer and use it in GitHub Desktop.
multiple php modules
##
## PHP 5.2 Vhost
##
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin pgoncalves@gvdasa.com.br
DocumentRoot "D:/www"
ServerName pgoncaves
ServerAlias php52.pgoncalves www.php52.pgoncalves
ErrorLog "logs/php52-error.log"
CustomLog "logs/php52-access.log" common
# PHP 5.2
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php .php5
AddType application/x-httpd-php-source .phps
PHPIniDir "C:/php"
<IfModule dir_module>
DirectoryIndex index.html index.php index.php5
</IfModule>
</VirtualHost>
##
## PHP 5.3 Vhost
##
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin pgoncalves@gvdasa.com.br
DocumentRoot "D:/www"
ServerName php53.pgoncaves
ServerAlias www.php53.pgoncalves
ErrorLog "logs/php53-error.log"
CustomLog "logs/php53-access.log" common
# PHP 5.3
LoadModule php5_module "c:/php53/php5apache2_2.dll"
AddType application/x-httpd-php .php .php5
AddType application/x-httpd-php-source .phps
PHPIniDir "C:/php53"
<IfModule dir_module>
DirectoryIndex index.html index.php index.php5
</IfModule>
</VirtualHost>
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin>httpd -t
[Wed Nov 14 09:19:43 2012] [warn] module php5_module is already loaded, skipping
Syntax error on line 44 of C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/extra/vhosts-php.conf:
Only first PHPINIDir directive honored per configuration tree - subsequent ones ignored
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment