Caching php scripts (intermediate opcode) in memory can make your dynamic pages load really fast and exert less load on the CPU of your VPS/dedicated server. Typical php caching engines and accelerators are eAccelerator, xCache and APC (a PECL extension). APC is considered the best. In this do-it-yourself tutorial, I've written about APC and easy step by step procedure to get it installed on your VPS/dedicated server. Here's the complete tutorial : Cache PHP Scripts With APC PECL Module So, try it out today; lessen system load and watch your dynamic pages fly! Feel free to submit comments and social bookmark the blog post...many people may be helped with this. Thank you.
i just installed this last night which took forever as it could not find my apxs, for anybody using centos or another os with the same problem try creating a link to where your apx binarys are located heres what i used. ln -s /usr/bin/apxs2 /usr/bin/apxs Code (markup): note that you will need to change this depending on where your apx binary is, alternatively you could install from source.
Well, for apache2 you need to use apxs2, apache1 users can go on with apxs. I think one can also mention the path to apxs if you get errors involving apxs : pecl install apc --with-apxs = [your path to apxs] Doing a yum install httpd-devel installs necessary files (apxs) if not installed already.
Hello, I never tried APC, I'm using eAccelerator and it works very well with my sites. A simple bench with apache bench (AB) showed me an significant increse. But, what are the main differences between eAccelerator and APC? tks
Apparently, eAccelerator isn't actively maintained now while APC is actively maintained by some PHP development team members. APC is more resource efficient as considered by people...it'll also be included in PHP6. I'll try to post some architectural differences between the 2 packages later if I find some time.