Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jan 17, 2012 5:48 pm 
Offline
Junior Member

Joined: Tue May 31, 2011 5:28 pm
Posts: 25
I currently am running Debian 6 with multiple vhost files. I'm curious as to how I would be able to let each vhost control their own php.ini.

When I was with dreamhost, I used this-http://wiki.dreamhost.com/PHP.ini

But I wanted to learn, and now here i am, but could someone please assist me in this situation?


Thanks,
-John


Last edited by itsjohn on Thu Feb 23, 2012 12:48 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Tue Jan 17, 2012 7:09 pm 
Offline
Senior Member

Joined: Mon Dec 20, 2010 11:37 pm
Posts: 76
I think you can't do that. There is only one php.ini but you can change some values: http://php.net/manual/en/configuration.changes.php


Top
   
 Post subject:
PostPosted: Tue Jan 17, 2012 7:17 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
There's this article from HowtoForge, but it's 3 years old and I have no idea whether or not it still works.

If that doesn't work, your only choice would be to switch to CGI/FastCGI, or use .htaccess to tweak per-site PHP configuration. Fortunately, most of the things that site owners might want to tweak can be tweaked via .htaccess, and the few things that can't be tweaked via .htaccess are off limits for a very good reason (security).


Top
   
 Post subject:
PostPosted: Wed Jan 18, 2012 7:20 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
If you're feeling adventurous then PHP-FPM has this capability built in, each pool can have a separate ini file, or you can try this
http://php.net/manual/en/configuration. ... r-user.php

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Thu Feb 23, 2012 12:47 am 
Offline
Junior Member

Joined: Tue May 31, 2011 5:28 pm
Posts: 25
@hybinet
that link to the tutorial worked like a charm, thank you!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group