An Introduction to APC - Alternative PHP Cache

Written By: Tim Sisson
Experience Level: Beginner
Articles labeled as Beginner are those that require basic tasks to be completed, such as making simple configuration changes following a brief set of instructions. If you find yourself needing assistance, our Technical Support Department can generally assist.
Print E-mail:

APC stands for Alternative PHP Cache, and is a free and open opcode cache for PHP. It provides a robust framework for caching and optimizing PHP performance. APC also provides a user cache for storing application data. 

Why would I want to install APC?

Having a caching system in place can help speed up your website. Usually, APC works best in an environment where traffic volume is high and the code base to be executed is small but frequent. APC is especially good for use with caches that do not change often and will not grow to large. PHP must be parsed, compiled and executed everytime a script is called. APC will store the compiled code for execution so there is not a need to parse and compile the code over again. 

What are the differences between APC and other Caching Modules?

There are numerous caching modules available over the internet. APC gives you the ability to not only cache parsed PHP scripts for optimized loading but the ability to cache data as well. Other options such as Memcached only allow for caching of data. Also APC allows direct access to the cache in memory. Memcached does not. Memcached stores data in memory and the application accesses it through TCP. For more information on Memcached please see our article. 

How can I install APC?

APC is not available on shared servers since it affects the entire server. If you are a VPS or Dedicated customer and have root you can install it yourself.  Please feel free to contact our support department if you are not comfortable installing PECL modules and our support staff can assist you.

 
Rating:
 
Please log in to rate this article.
Like this Article?
Notify Me of Updates!
Please login to subscribe to receive notifications when this article is updated.
Prerequisite Articles
None

Comments

Currently no comments

You must log in before commenting.

Need more Help?

Search
Current Customers
Chat:Click to Chat Now
Call:888-321-HOST (4678)
E-mail:support@InMotionHosting.com
Ticket Submit a Support Ticket
Ask the Community!
Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.
Not a Customer?
Get web hosting from a company that is here to help. Sign up today!

Follow InMotion Hosting!

 4246 Followers. Follow Us!

Have a Question?

If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 5pm EST, Monday - Friday)

Recent Questions