Working with different PHP version at the same time, php_value extension_dir not working?
Posted
by
Gremo
on Server Fault
See other posts from Server Fault
or by Gremo
Published on 2012-10-03T13:20:04Z
Indexed on
2012/10/03
21:42 UTC
Read the original article
Hit count: 191
I need both PHP 5.4.7 and 5.3.17 running on Windows 7 x64 with Apache 2.2.23. This is my virtual host configuration:
<VirtualHost *:80>
DocumentRoot "C:/WAMP/Apache/htdocs/php54"
ServerName php54.local
PHPIniDir "C:/WAMP/PHP54"
LoadModule php5_module "C:/WAMP/PHP54/php5apache2_2.dll"
php_value extension_dir "C:/WAMP/PHP54/ext"
<Directory "C:/WAMP/Apache/htdocs/php54">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
The PHPIniDir
and LoadModule
directives work fine and using phpinfo()
inside my script prints the right PHP version.
But I need to load extensions, and this is where it fails. php_value extension_dir
should be C:/WAMP/PHP54/ext
but it's (default one) C:/php
.
What I'm missing here?
EDIT: Of course I can set this value directly in C:/WAMP/PHP54/php.ini
, but I prefer passing it using vhost configuration:
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
extension_dir = "C:/WAMP/PHP54/ext"
© Server Fault or respective owner