We know that Zend has a free Optimization engine for PHP, but FreeLAMP uses a buffer product called PHP Accelerator this time. We have explained several methods of acceleration in the article "LAMP acceleration", which mentions PHP Accelerator. Its installation method is very simple, but it needs to get an activation key from its website. 1. Download: www. php-accelerator.co.uk/download. php 2. Obtain the activation key and install: www. php-accelerator.co.uk/activate. after registering Your SERVER_NAME with php, you will receive the following prompt: your key for www.freelamp.com is 8edfd13946c96309244fcca309415902 Now you must set the key for www.freelamp.com in Your site configuration. for single domains not using virtual hosts The key can be set in the php. ini file as follows: # PHPA key for www.freelamp.com # phpa. Registration_key = 8edfd13946c96309244fcca309415902 For domains setup as a virtual host Add the key to the domain specific section for your web server. # www.freelamp.com VHost entry # <VirtualHost 10.20.30.40> ServerName www.freelamp.com #... (other vhost specific config) # php settings php_value phpa. registration_key 8edfd13946c96309244fcca309415902 # also enable phpa if set to off in the php. Ini (the default is on) php_value phpa 1 </VirtualHost> for details about how to set the phpa value, refer to the CONFIGURATION file with the software. Because most websites are configured as virtual hosts, we recommend that you use php_value phpa. Example: php_value phpa. tweaks off php_value phpa. cache_dir/tmp php_value phpa. file_perms 400 php_value phpa. ignore_files "/index. php,/a/test. php "# php_value phpa. ignore_dirs "/data/WWW/site1/,/cache/" php_value phpa. shm_size 8 php_value phpa. shm_key 0xc0deb00 php_value phpa. shm_perms 664 3. Set php. ini: assume that we unbind the downloaded file to/usr/local/php. add zend_extension =/usr/local/php/php_accelerator_1.2p2 to ini.. So and comment out the original Zend Optimization engine: # zend_extension =/usr/local/Zend/lib/ZendOptimizer. so restart Apache and browse any PHP page in the browser. Some files starting with phpa are generated under/tmp. Another way to check whether the buffer works is to check the output of phpinfo (). The description of the original Zend Optimization engine has been shown: this program makes use of the Zend Scripting Language Engine: Zend Engine v1.1.1, Copyright (c) 1998-2001 Zend Technologies with the PHP Accelerator v1.2p2, Copyright (c) 2001-2002, by Nick Lindridge, You need to describe how to INSTALL. so file and real. so files are different, so you need to note this difference during installation. 4. Adjust the buffer size. The PHP Accelerator provides the buffer management command: phpa_cache_admin-mv: Observe the buffer situation of the memory phpa_cache_admin-fv: Observe the buffer situation of the file phpa_cache_admin-k: Set the buffer size. 5. Summarize the INSTALL file provided by the software and explain some performance statements, I will not repeat it here. It should be noted that FreeLAMP.com's article is not currently based on the PHP architecture, but the forum system is based on the PHP architecture. Therefore, the performance improvement will only be the improvement of the forum system.