Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Virtual hosts and global php_value (1 reply)

$
0
0
Hello

Before I start with my problem, first of all:

Thanks for Wampserver and thanks to everyone who maintains the project. :-) I have been using it for several years as a local test and development platform for my phpBB extensions (freeware).

My question:

From now on I need this entry in the php.ini, which basically works as it should:

curl.cainfo = "g:\program files\wamp\bin\certificats\cacert.pem"

However, I use virtual hosts because I need different PHP versions for different phpBB versions. I also have a wide range of PHP versions installed, as I often have to test with older versions and this is exactly where the problem lies:

I need the specified PHP variable globally in all PHP versions, but having to make this entry in more than a dozen php.ini's is 1) very cumbersome and 2) would not be future-proof, as I also have to update the PHP versions regularly. Is there a way to set this globally so that it is used by all PHP versions? have already researched this problem, but have not found anything that helps me. One approach was to make an entry with php_value in the httpd-vhosts.conf, in my case:

php_value curl.cainfo "g:\programs\wamp\bin\certificats\cacert.pem"

However, this has no effect for me. Am I missing something, or is it not possible at all?

Viewing all articles
Browse latest Browse all 3177

Trending Articles