You are not logged in.
Hello,
I followed the Wiki entry on LAMP to set up Apache and PHP and everything is working fine. However, I need to have a specific php.ini for some VHosts, so I thought all I had to do was to add the following the VirtualHost entry (tried different places, like httpd.conf, too):
SetEnv PHPRC /directory/to/phpini/
But this doesn't work. When I check with phpinfo(); then the environment variable is added correctly, however, PHP doesn't use the php.ini in the specified directory. It always uses /etc/php/php.ini.
I checked the path a couple of times, all the files are named correctly and like I said, the variable is actually added. PHP just refuses to use the alternate .ini file.
Am I doing something wrong, or is this some kind of bug?
Offline
I guess it's okay to bump this thread after one week of waiting
Offline
Welcome to the forum nifoc!
Why do you say it? If you've solved you can mark it as SOLVED in the title.
Can this one help ?
http://forums.site5.com/showthread.php?t=3689
Offline