Free implementation of PHP buffer for website acceleration
Source: Internet
Author: User
Article title: free implementation of website acceleration PHP buffer. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
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 and install the activation key:
Www. php-accelerator.co.uk/activate. php
After registering your SERVER_NAME, 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:
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:
With the PHP Accelerator v1.2p2, Copyright (c) 2001-2002, by Nick Lindridge
It should be noted that the installation and installation instructions, the. so file and the real. so file are different, so you need to pay attention to this difference during installation.
4. adjust the buffer size
PHP Accelerator provides the buffer management command:
Phpa_cache_admin-mv: Observe the buffer in the memory
Phpa_cache_admin-fv: file buffer
Phpa_cache_admin-k set the buffer size
V. Summary
The INSTALL file provided by the software describes some performance statements. I will not repeat them 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. (FreeLAMP: Xu provides this article permanently)
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.