You are not logged in.

#1 2009-08-01 21:25:16

nifoc
Member
Registered: 2009-08-01
Posts: 2

PHPRC is being ignored?

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

#2 2009-08-08 16:04:42

nifoc
Member
Registered: 2009-08-01
Posts: 2

Re: PHPRC is being ignored?

I guess it's okay to bump this thread after one week of waiting wink

Offline

#3 2009-08-08 16:16:34

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: PHPRC is being ignored?

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

Board footer

Powered by FluxBB