Created
May 20, 2014 20:25
-
-
Save Mrkisha/4f9e7b1ac02f2e625134 to your computer and use it in GitHub Desktop.
Ubuntu APC install and config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install php-pear php5-dev make libpcre3-dev | |
sudo pecl install apc | |
#dit the php.ini file and add a line at the end | |
sudo nano /etc/php5/apache2/php.ini | |
#Add the following line to the bottom of it: | |
extension = apc.so | |
sudo service apache2 restart | |
nano /var/www/info.php | |
<?php | |
phpinfo(); | |
?> | |
#Configuring APC | |
sudo nano /etc/php5/apache2/php.ini | |
#Below the line you pasted to enable APC, paste the following line: | |
apc.shm_size = 64 | |
apc.stat = 0 | |
#Now that APC is up and running, there is a nifty little page you can use to check its status and performance. You can locate an apc.php #file in the /usr/share/php/ folder. You have to move this file somewhere accessible from the browser - let's say the www folder: | |
cp /usr/share/php/apc.php /var/www | |
#http://<IP_Address>/apc.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment