Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Feb 20, 2011 6:30 pm 
Offline
Senior Member

Joined: Fri Feb 11, 2011 1:36 pm
Posts: 118
I´ve read that you can install APC only if you have one site running in your server. Is that true?


Top
   
 Post subject:
PostPosted: Sun Feb 20, 2011 6:41 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
No, it's not true.

You can have multiple sites all sharing the same APC pool. This raises potential security issues, though, so I wouldn't recommend it if you have untrusted scripts (web hosting customers) on your server.

Or you can give each site its own APC pool, using FastCGI. This of course can take up more memory than having a shared pool.


Top
   
 Post subject:
PostPosted: Sun Feb 20, 2011 7:24 pm 
Offline
Senior Member

Joined: Fri Feb 11, 2011 1:36 pm
Posts: 118
Thanks hybinet.
Can i enable and disable APC anytime? I mean, i want to test a site script with and without APC just to check speed.


Top
   
 Post subject:
PostPosted: Sun Feb 20, 2011 7:56 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Which OS and webserver are you using?

If you're using Debian or Ubuntu and if you installed APC using apt-get, you can disable APC by opening /etc/php5/conf.d/apc.ini in your editor and commenting out the first and only line. (Prepend a semicolon to comment it out.) Then restart Apache.


Top
   
 Post subject:
PostPosted: Sun Feb 20, 2011 8:54 pm 
Offline
Senior Member

Joined: Fri Feb 11, 2011 1:36 pm
Posts: 118
Thank you! Yes, it´s Ubuntu.


Top
   
 Post subject:
PostPosted: Thu Feb 24, 2011 8:17 pm 
Offline
Senior Member

Joined: Sun Feb 21, 2010 5:12 pm
Posts: 64
Using an opcode cache like APC can give you a huge speed boost.


Top
   
 Post subject:
PostPosted: Fri Feb 25, 2011 10:35 am 
Offline
Senior Member

Joined: Fri Feb 11, 2011 1:36 pm
Posts: 118
Thanks Brian, the problem is that in the administration section of my site i have a few cache possibilities, file based, memcache, xcache and APC, and APC is recommended.
But, thanks i will take a look.


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


Who is online

Users browsing this forum: No registered users and 1 guest


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