Website Accelerated PHP Buffer Free implementation Method _php Foundation
Source: Internet
Author: User
Wen/Xu Yongju
We know Zend has a free tuning engine for PHP, but freelamp this time with a buffer product called PHP Accelerator.
We described several ways to accelerate in the LAMP acceleration article, which refers to the PHP accelerator, which is simple to install, but needs to get an activation key to his web site.
First, Download:
www.php-accelerator.co.uk/download.php
Get activation Key and install:
www.php-accelerator.co.uk/activate.php
After registering your own server_name, you will get the following tips:
Your key for www.freelamp.com is 8edfd13946c96309244fcca309415902
Now, must set the key for www.freelamp.com in your site configuration.
For a domains not using virtual hosts
The key can be set in the php.ini file as follows:
Restart Apache, browse through an arbitrary PHP page in the browser and see/tmp to generate some files that start with PHPA. Another way to check if buffering works is to look at the output of the phpinfo (), the original Zend tuning engine's description section, has been shown as:
This program makes the Zend scripting Language Engine:
With the PHP accelerator v1.2p2, Copyright (c) 2001-2002, by Nick Lindridge
It should be noted that there are differences between the. So file and the real. So file in installing the INSTALL installation instructions, so you need to notice the difference when you install it.
Four, adjust the buffer size
The PHP accelerator provides a buffer management command:
PHPA_CACHE_ADMIN-MV to observe memory buffering
PHPA_CACHE_ADMIN-FV observation file buffering
Phpa_cache_admin-k Set Buffer size
V. Summary
The software provides a INSTALL file to illustrate some of the performance of the argument, I do not repeat here.
Need to explain, freelamp.com's article is not currently PHP architecture, but the forum system is PHP architecture, so the performance of the promotion will only be the forum system upgrade. (Freelamp: Xu Yongju provides this article)
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