A SHARE OF $50,000 CASH! A SHARE OF $50,000 CASH!
We are aware of some customers receiving a fraudulent email claiming to be VentraIP Australia. Please do not open the link in this email, and mark it as spam immediately. If you have clicked the link in the email and entered your details, please update your VIPControl password immediately
View all Products Close Menu Menu
How to install APC on your cPanel VPS
Updated Thursday January 28th 2021 / Category VPS

APC (Alternative PHP Cache) is a free and open opcode cache for PHP which offers a robust framework for optimising and caching your PHP code. It can provide a considerable performance boost for your websites. Whilst it isn’t supported through cPanel’s EasyApache (like other caches such as xcache and eAccelerator), it’s quite easy to install.

Before you consider installing APC you need to ensure your PHP handler is either set to DSO or FastCGI, as unfortunately suPHP is unsupported. For the best results consider running PHP as DSO + mod_ruid2 for optimal performance and security.

To install APC please run the following from SSH:

cd /usr/local/src
tar -zxvf APC-3.1.9.tgz
cd APC-3.1.8
./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/local/bin/php-config
make install

Please note: APC 3.1.9 was the latest stable release at the time this article was written, please check before proceeding to ensure you install the latest version.

Following your APC install, add the following lines to your global php.ini (/usr/local/lib/php.ini) to activate it:

Please remember that cPanel don’t provide support for APC, but the benefit it can offer and the vast amount of information available on the internet about it can certainly make it worth it.

Can’t find the answers you're looking for? Check out these other methods of support!