Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun May 16, 2010 9:08 am 
Offline
Senior Newbie

Joined: Thu Dec 03, 2009 11:30 am
Posts: 11
Hi-
I've set up 2 php-fcgi processes on my linode for
a) a few smaller domains with little traffic
b) one larger domain
Both are started with spawn-fcgi (I'm using lighttpd on ubuntu). I can easily pass a custom php.ini to php-cgi with the "-c" flag, but for XCache, php looks for the .ini in /etc/php/conf.d which is specified at php compile-time.
One solution would be to remove the lines from conf.d/xcache.ini and move them to the seperate php.ini, but that's not how it's designed and I'm not sure what would happen on updates.
Any ideas?


Top
   
PostPosted: Mon May 17, 2010 1:20 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
burningbunny wrote:
Any ideas?


For what? You never actually said what your problem was. Just that you've set up php-fcgi.


Top
   
 Post subject:
PostPosted: Mon May 17, 2010 6:20 pm 
Offline
Senior Newbie

Joined: Thu Dec 03, 2009 11:30 am
Posts: 11
Oops, should've read that once again before posting.
I'm trying to create seperate configuration files for XCache, one for each php-fcgi process. Unfortunately, this isn't as straightforward as passing different php.ini to spawn-fcgi because the xcache.ini is in /etc/php5/conf.d/, which is scanned and appended to php.ini automatically.


Top
   
 Post subject:
PostPosted: Tue May 18, 2010 11:34 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
burningbunny wrote:
Oops, should've read that once again before posting.
I'm trying to create seperate configuration files for XCache, one for each php-fcgi process. Unfortunately, this isn't as straightforward as passing different php.ini to spawn-fcgi because the xcache.ini is in /etc/php5/conf.d/, which is scanned and appended to php.ini automatically.


Mind if I ask why? XCache looks to be a standard opcode cacher, it seems like you'd want every spawned PHP process to use the same config/cache. You shouldn't need any special config for this, just configure XCache in the main php.ini file.


Top
   
 Post subject:
PostPosted: Tue May 18, 2010 5:36 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Maybe the OP doesn't want one site to be able to access another site's variable cache? Other than that I don't see any obvious benefit of having separate XCache configurations.

You can remove /etc/php5/conf.d/xcache.ini and copy whatever is in there into each site's php.ini file.


Top
   
 Post subject:
PostPosted: Wed Jun 23, 2010 6:49 am 
Offline
Senior Newbie

Joined: Thu Dec 03, 2009 11:30 am
Posts: 11
I originally needed the setup to limit the size of a specific cache, while keeping another one big.
I did what hybinet recommended, but with linode's birthday RAM upgrade, all my problems were washed away. Thanks for the help!


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


Who is online

Users browsing this forum: No registered users and 3 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