Web site to accelerate the free implementation of PHP buffering method

Source: Internet
Author: User
Tags ini key zend
Website acceleration 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 mentions the PHP accelerator, which is very simple to install, but needs to go to his website to get an activation key.








One, download:





www.php-accelerator.co.uk/download.php





second, get activation key and install:





www.php-accelerator.co.uk/activate.php





register 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:





# 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 out in the php.ini (the default is on)





php_value PHPA 1





</virtualhost>





a specific PHPA value setting, you can refer to the configuration of the CONFIGURATION file that accompanies the software.





Since most Web sites are virtual host configurations, it is recommended that php_value PHPA be used. The way set.





For 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





three, set php.ini





assume that we have unpacked the downloaded file to/usr/local/php, then add in php.ini:





zend_extension=/usr/local/php/php_accelerator_1.2p2.so





and comment out the original Zend optimization engine:





# zend_extension=/usr/local/zend/lib/zendoptimizer.so





to restart Apache, browse through an arbitrary PHP page in the browser and see/tmp to generate some PHPA at the beginning of the file. Another way to check if buffering works is to look at the output of the phpinfo (), the original Zend tuning engine's description section, which has been shown as:





This program makes 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





need to note that the installation of INSTALL installation instructions, where the. So file differs from the real. So file, so you need to notice the difference when you install it.





Four, adjust the buffer size





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 of





the software provides a INSTALL file on the performance of some of the statements, I do not repeat here.





need to explain, freelamp.com's article is not currently PHP architecture, but the forum system is the PHP architecture, so the performance of the promotion will only be the forum system upgrade.








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.