how to set php.ini for each user

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
teranom
Forum Newbie
Posts: 3
Joined: Tue Jul 04, 2006 6:36 am

how to set php.ini for each user

Post by teranom »

how can we set different php.ini for each website over IIS in win 2003?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

if you mean have a different php.ini file for each site, the answer is no. You could include a page that uses some ini_set()ers for each site and accomplish the same thing however.
teranom
Forum Newbie
Posts: 3
Joined: Tue Jul 04, 2006 6:36 am

Post by teranom »

but there are many hosts that i see their users can put their php.ini (with some of directives) in their folders, and it'll be executed as directive ini. how is that?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

that might be a *nix thing, but I'm nearly 100% certain it can not be done with windows.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I think it has to do with virtual dedicated servers. Individual hosted accounts typical use the servers php.ini version. I could be way off here though.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I believe running under CGI would allow this sort of behaviour, as well as VDS and usermode as Everah stated.
teranom
Forum Newbie
Posts: 3
Joined: Tue Jul 04, 2006 6:36 am

Post by teranom »

Yes, under CGI/fastCGI each domain can have its own php.ini. I want to know how could this be done.
Post Reply