Configure the PHP accelerator ZendGuardLoader in CentOS

Source: Internet
Author: User
1. install ZendGuardLoader1. log on to the zend official website and download the corresponding files at http://www.zend.com/products/guard/downloads. Note the PHP version and system version. for example, I use centos6.364 + PHP5.3. 2. decompress ZendLoader 1. install Zend Guard Loader
1. log on to the zend official website to download the page: http://www.zend.com/products/guard/downloads To download the corresponding version of the file. Note the PHP version and system version, for example, centos 6.3 64-bit + PHP 5.3. 2. decompress the Zend Loader package to any directory and find a file ZendGuardLoader in a corresponding version of the php folder (such as: php-5.3.x. so copy this extension module to your php extension module folder. How can I find the directory where the extension file is located? Run the following command: # rpm-ql php will display similar content:/usr/lib64/php/modules/libphp5.so, the/usr/lib64/php/modules/is the extension file directory. Plugin file): [Zend Guard] zend_extension = your extension directory location/ZendGuardLoader. sozend_loader.enable = plugin = 3zend_loader.license_path = 4. restart the apache service and complete. II. install memcache 1. you can install yum install php-pecl-memcache directly using yum. restart apache service 3. install eAccelerator 1. download the latest version of eAccelerator and upload it to the server: http://www.eaccelerator.net/ 2. prerequisites: install php-devel, gcc, make, and so on: # yum-y install php-devel gcc make 3. decompress the file, cd it to the decompressed directory, and there is also a README file, you can see a prompt for Quick install, we will start installation here. 4. Command: # export PHP_PREFIX = "/usr" # $ PHP_PREFIX/bin/phpize #./configure \ -- Enable-shared \ -- With-php-config = $ PHP_PREFIX/bin/php-config # Make install 5. configure the eAccelerator and configure the eAccelerator as an extension of php. if the eAccelerator version is later than 0.9.1 and the server has/etc/php. d. copy the ini file to it and modify the default value. otherwise, you can edit php. ini file, add the configuration here (either with the above one): zend_extension = "/usr/lib64/php/modules/eaccelerator. so "(this address corresponds to your extension file address. For more information about the address, see the previous section) eaccelerator. shm_size = "16" eaccelerator. cache_dir = "/tmp/eaccelerator" eaccelerator. enable = "1" eaccelerator. optimizer = "1" eaccelerator. chec K_mtime = "1" eaccelerator. debug = "0" eaccelerator. filter = "" eaccelerator. shm_ttl = "0" eaccelerator. shm_prune_period = "0" eaccelerator. shm_only = "0" if PHP built using a secure thread must use "zend_extension_ts" instead of "zend_extension ". 6. create a cache Directory (I have created a directory as soon as I run it, but I don't know why) # mkdir/tmp/eaccelerator # chmod 0777/tmp/eaccelerator 4. test the installation and create a new phpinfo. on the php page, view the output configuration information. on the browsing page, ctrl + f, find Zend Guard Loader, memcache, and eAccelerator to see if there is any content. Another method is to use the command php-v to view the output information. Done!
Related Article

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.