Home >Backend Development >PHP Tutorial >How to install eAccelerator in PHP 5.2.17 in windows_PHP tutorial

How to install eAccelerator in PHP 5.2.17 in windows_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:08:421113browse

eAccelerator is an open source PHP accelerator that optimizes and dynamic content caching, improves the caching performance of PHP scripts, and almost completely eliminates the server overhead of PHP scripts in the compiled state. Let me introduce PHP 5.2 to you. .17 Install eAccelerator method

This package includes non-thread-safe and thread-safe versions. eAccelerator_ts.dll is the thread-safe version, and eAccelerator_nts.dll is the non-thread-safe version. The eAccelerator is compiled using the latest PHP 5.2.17. Please confirm your PHP version before use. The file contains Thread safe (thread safe) and Non Thread Safe (non-thread safe version), please choose according to the PHP version you are using.

1. Related downloads

eAccelerator 0.9.6.1 For PHP5.2.17 (DLL)

2. Installation method


1. Select the corresponding version


According to your PHP thread-safe version, select the corresponding file, copy it to the subdirectory ext under the php directory, and rename it to php_eaccelerator.dll.

2. Set corresponding parameters


[eaccelerator]
zend_extension_ts="d:/php5/ext/php_eaccelerator.dll"
eaccelerator.shm_size="64"
eaccelerator.cache_dir="d:/php5/tmp"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys = "shm"
eaccelerator.sessions = "shm"
eaccelerator.content = "shm"

Please edit the C:windowsphp.ini file (according to the actual situation), copy the above parameters to the bottom of php.ini, and modify the following path.

zend_extension_ts="d:/php5/ext/php_eaccelerator.dll" #Your PHP path
eaccelerator.cache_dir="d:/php5/tmp" #Your PHP temporary file path (must have user read and write permissions)

3. Save and restart IIS


Execute: IISRESET in CMD, restart IIS, and use phpinfo to check. If the prompt is as shown below, the installation is successful.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629827.htmlTechArticleeAccelerator is an open source php accelerator that optimizes and dynamic content caching, improves the caching performance of php scripts, and makes PHP scripts In the compiled state, the overhead on the server is almost completely eliminated...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn