For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > June 2004 > How to use different php.ini









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to use different php.ini
Joel Kermabon

2004-03-18, 6:27 pm

Hello

In order to deal with different sites configurations how can I use more
than one php.ini ?
Another way will be to overide the register_globals = On directive but I
don't know how to do.

I know that I can use a .php.ini in user directory but this solution is
not appropriate to me because the server is running under the apache
user and I don't want to change this setting.

Any idea ?

Cordialy

Joël Kermabon
Neptune Internet Services
Phpdiscuss - Php Newsgroups And Mailing Lists

2004-06-09, 8:56 pm

Hi Joel, edit the .htaccess file of the user and add this line:

SetEnv PHPRC /home/user

now, only copy an php.ini file into the web folder of the user

/home/user/www

thats all
bye.

Alejandro Zanlongo

Joel Kermabon wrote:

> Hello


> In order to deal with different sites configurations how can I use more
> than one php.ini ?
> Another way will be to overide the register_globals = On directive but I
> don't know how to do.


> I know that I can use a .php.ini in user directory but this solution is
> not appropriate to me because the server is running under the apache
> user and I don't want to change this setting.


> Any idea ?


> Cordialy


> Joël Kermabon
> Neptune Internet Services

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com