PHP optimized acceleration: how to configure Alternative PHP Cache (APC) on Windows
Introduction
According to Wikipedia, accelerated PHP scripts compile bytecode caches to avoid overhead for parsing and compiling source code for each request. I have used alternative PHP Cache (APC), APC is a completely free and open source code (PHP License) it is used to optimize PHP code and cache data and compiled code from the framework of the PHP bytecode compiler in the shared memory to optimize the development of PHP.
You may collect the complete source code from http://pecl.php.net/package/apc.
Occasionally, the configuration process in question APC is submitted on the Windows platform to avoid any problems in Windows step by step.
Environment
I have used the following versions to test the complete configuration,
1. APV3.1.14 test version
2. Apache2.2.22 PHP5.3.13 and MySQL5.5.24 contained in WAMP Server 2.2
3. Windows 7 (64-bit)
Procedure
First, I 1. At have set the location on my WAMP server to E: \ WAMP.
Install APC2.Now. I have the ext directory to copy php_apc.dll. In my system, the location is in E: \ WAMP \ BIN \ PHP \ php5.3.13 \ ext \.
This is an important excerpt here, you will get the location of all versions of the APC binary file
Http://dev.freshsite.p/php-accelerators/apc.html
And you will receive the appropriate files APC
Http://www.php.net/manual/en/book.apc.php
3. The current open initialization file (in php. ini) is located at E: \ WAMP \ BIN \ PHP \ php5.3.13 \ php. ini or you can follow the method described in
Now, only the following two lines are appended to this initialization file, as shown in the bottom of the figure below.
Apc. enabled = 1
Apc. stat = 1
4. Save the php. ini file and close it.
5. Now restart the WAMP Web server.
6. Now copy the file unzipping from the archive APC-3.1.14.tgz apc. php from the location http://pecl.php.net/package/apcand the collection and paste it to the file folder from the web server publisher. In my example, it is E: \ WAMP \ WWW \
7. Now open your preferred browser and write the address bar http: // localhost/apc. php and the environment you enjoy to improve the performance of your application, developed using PHP.