Answered by the Webhosting Experts

Hivelocity
Dedicated Servers

Bare Metal Computing
Tired of overpaying for outdated hardware or nonexistent technical support?

Click here to chat with one of our highly skilled account managers for Hivelocity's latest server deals or browse our bare metal servers by clicking the link below.

Tags
...
...

How to Install Alternative PHP Cache (APC) on your Server?

Step a: Login to your server as root.

 

Step b: Download the APC

wget https://pecl.php.net/package/APC

 

eg : wget https://pecl.php.net/get/APC-3.0.15.tgz

 

Step c:  Extract it over to your server

tar -xzf APC-3.0.15.tgz

cd APC*

Step d:  Check the PHP location by running the below command:

which php

Step e: Create the configuration files using the below command

Phpize

Stepf:  Now the APC need to be compiled over the server :

./configure –enable-apc –enable-apc-mmap –with-apxs –with-php-config=/usr/local/bin/php-config

make

make install

Note : You must install the APC in the php.ini file

Step g: Below command would help you to find the php.ini over the server :

php -i | grep php.ini

Step h :  Amend php.ini by adding APC extension, as stated below :

vi /usr/local/Zend/etc/php.ini

Step I : Add the following to the php.ini file

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

Step J :   Restart apache

service httpd restart

Share

Facebook
Twitter
LinkedIn
Email
WhatsApp

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: support@hivelocity.net. We are also available to you through our phone and live chat system 24/7/365.

Watch our servers in their natural habitat

Click here to see more live streams or take a tour of our facilities.

Hivelocity
Dedicated Servers

Bare Metal Computing
Tired of overpaying for outdated hardware or nonexistent technical support?

Click here to chat with one of our highly skilled account managers for Hivelocity's latest server deals or browse our bare metal servers by clicking the link below.