http://php-accelerator.co.uk/can be downloaded, is a strong opponent of Zend. is free of charge. I'm already using it. The results are not bad.
Modify PHP.ini Plus:
Zend_extension =/usr/local/lib/php_accelerator_1.3.3r2.so
PHPA = On
Phpa.tweaks = On
Phpa.cache_dir =/tmp
Phpa.file_perms = 400
Phpa.cache_file_prune_period = 1h
Phpa.cache_file_ttl = 1d
Phpa.shm_size = 10
Phpa.shm_key = 0xc0deb00
Phpa.shm_perms = 666
Phpa.shm_user = Nobody
Phpa.shm_group = Nobody
Phpa.shm_release_at_exit = On
Phpa.shm_stats_check_period = 5m
Phpa.shm_ttl = 12h
Phpa.shm_max_processes = 512
PHPA.SHM_LOCK_THRESHOLD0 = 10
Apachectl graceful can be used. The specific parameters look at its documentation.
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.
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:
# 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 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.
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:
Zend Engine v1.1.1, Copyright (c) 1998-2001 Zend Technologies
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.
What needs to be explained is that 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
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.