PHP-APC for Magento acceleration

Source: Internet
Author: User
Tags apc cdata crypt

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.