Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Oct 12, 2010 7:40 pm 
Offline
Senior Member

Joined: Tue Sep 28, 2010 12:05 pm
Posts: 90
Website: http://www.theatereleven.com
AOL: theatereleven
Location: Santa Monica, CA
I'm on Debian 5 / MySQL 5.1.49 / PHP 5.2.x / Apache 2

First installed APC via:

pecl install apc

That seemed to work okay. But then I read somewhere that you didn't need PECL and could just do:

apt-get install php-apc

So I did this too. It asked if I wanted to keep my apc.ini file and I said yes.

Have I screwed anything up? Should I have uninstalled the PECL stuff?

Also, right now I've got my apc.ini looking like this:

extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.optimization=0
apc.shm_size=128
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
apc.stat=on
apc.stat=1

Are there any recommended settings for better performance? I'm using a Drupal 6.x site.

THANKS.

_________________
kyler d. boudreau
theatereleven.com


Top
   
 Post subject:
PostPosted: Fri Oct 15, 2010 12:59 pm 
Offline
Senior Member

Joined: Tue Sep 28, 2010 12:05 pm
Posts: 90
Website: http://www.theatereleven.com
AOL: theatereleven
Location: Santa Monica, CA
Anyone have a comment on this? Do I need to remove the PECL stuff or am I okay you think?

_________________
kyler d. boudreau

theatereleven.com


Top
   
 Post subject:
PostPosted: Fri Oct 15, 2010 1:39 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
Well, PECL stuff, from my understanding, is downloaded as source and compiled on your server.
So, IMO, yes, it'd be better to kill it and use the prepackages module, which will be always in sync with your (also prepackaged) PHP runtime.
Of course, Debian 5 offers APC 3.0.19 with back-ported security fixes, while the current version you can compile off PECL is 3.1.4... but, is the newer version worth the "compile manually, keep secured and up to date manually" hassle?

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
 Post subject:
PostPosted: Fri Oct 15, 2010 2:32 pm 
Offline
Senior Member

Joined: Tue Sep 28, 2010 12:05 pm
Posts: 90
Website: http://www.theatereleven.com
AOL: theatereleven
Location: Santa Monica, CA
Thanks - can you help me a tad more? How exactly do I uninstall the PECL version correctly? Do I uninstall them both and then use the normal apt get install one?

_________________
kyler d. boudreau

theatereleven.com


Top
   
 Post subject:
PostPosted: Fri Oct 15, 2010 4:51 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
I never used pecl... but seems that
Code:
pecl uninstall apc
aptitude purge php-apc
aptitude install php-apc

should do the trick... make sure you don't have any lingering references to apc in the main php.ini, and edit /etc/php5/<type>/conf.d/apc.ini to set your sizes.

All this assuming you can live with a bit of downtime in case of something going bad. >.>;

Good luck!

PS. The reinstall of the repo version with aptitude might be actually unnecessary... but it's a way to start from hopefully-clean state.

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
 Post subject:
PostPosted: Fri Oct 15, 2010 4:56 pm 
Offline
Senior Member

Joined: Tue Sep 28, 2010 12:05 pm
Posts: 90
Website: http://www.theatereleven.com
AOL: theatereleven
Location: Santa Monica, CA
You rock....i'll give this a shot.

_________________
kyler d. boudreau

theatereleven.com


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