Custom PHP.ini for Different Users

Hi,

I was trying to use different php.ini for different virtual users.

What I had done:
1. I created a directory. Let's assumed /home/user1/config

2. I copied the php.ini into the above directory to form the base

3. In /home/user1/www/ , I created a .htaccess with the following line in it:

SetEnv PHPRC /home/user1/config

4. Restarted Apache

5. Created a PHP script with:

phpinfo();

6. I ran the PHP script and can still see that it is still using my default PHP.ini file at /usr/local/lib


Can anyone tell me where I went wrong? It seems everything is correct, and I can't seem to get it to work. Perhaps i need to sleep... in 4 days, I had less than 6 hours total.

If anyone can help, I will be deeply appreciative (and can sleep in peace Custom PHP.ini for Different Users )

Thanks.

 

 

 

 

Top