1. First install the PHP-APC
sudo apt-get install php-pear php5-dev Apache2-threaded-dev
sudo pecl install apc-3.1.7
2. Again in the Magento/app/etc/local.xml
<config>
<global>
<install>
<date><! [Cdata[thu, 05:06:06 +0000]]></date>
</install>
<crypt>
<key><! [cdata[295888775466d0eb721707c95763b0be]]></key>
</crypt>
<disable_local_modules>false</disable_local_modules>
<resources>
<db>
<table_prefix><! [cdata[]]></table_prefix>
</db>
<default_setup>
<connection>
<username><! [cdata[root]]></username>
<password><! [cdata[123456789]]></password>
<dbname><! [cdata[shop]]></dbname>
<active>1</active>
</connection>
</default_setup>
</resources>
<session_save><! [cdata[files]]></session_save>
<cache>
<backend>apc</backend>
<prefix>MAGE_</prefix>
</cache>
</global>
<admin>
<routers>
<adminhtml>
<args>
<frontname><! [cdata[thisisadmin]]></frontname>
</args>
</adminhtml>
</routers>
</admin>
</config>
Add Red part
3. Empty cache in Magento background
4. Open php.ini File
Add to
Extension=apc.so
Apc.shm_size = 256
apc.num_files_hint=10000
apc.user_entries_hint=10000
Apc.max_file_size=5m
Parameter reference information (https://blog.nexcess.net/2011/03/25/optimizing-apc-cache-settings-for-magento/)
5. Restart PHP, find apc.php.gz under/usr/share/doc/php-apc/, unzip this file, get apc.php
(Different system file path, I use ubuntu12.04)
6. Put the file in the project root directory to access, you can see PHPAPC related information
7. Set PHP-APC login Password
Open apc.php and find
Defaults (' Admin_username ', ' APC '); Admin Username
Defaults (' Admin_password ', ' PASSWORD '); Admin password-change this to ENABLE!!!
After changing the password, click Login in the upper right corner to log in to view the information
PHP-APC for Magento acceleration