Configure the PHP identification accelerator Zend Guard loader times wrong

Source: Internet
Author: User
Tags download zend fpm zend linux

Configure the PHP identification accelerator Zend Guard Loader

Error 1

Failed loading/usr/local/php5/lib/php/zendguardloader.so:/usr/local/php5/lib/php/zendguardloader.so:wrong ELF Class:elfclass32

The reason for the above error is that the 64-bit system uses 32-bit zendguardloader.so

The solution is to download a PHP version of the 64-bit zendguardloader.so file

1, download Zend Guard

32-bit http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz

64-bit http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz

Mkdir/usr/local/zend

TAR-ZXVF zendguardloader-php-5.3-linux-glibc23-i386.tar.gz

sudo cp zendguardloader-php-5.3-linux-glibc23-i386/php5.3.x/zendguardloader.so/usr/local/zend/

2, configuration

Vim/etc/php.ini

Finally add:

Zend_extension=/usr/local/zend/zendguardloader.so

########################################################################################

Error 2

./php-fpm Start

[13-sep-2013 17:50:48] ALERT: [Pool www] pm.min_spare_servers (5) and pm.max_spare_servers (km) cannot be greater than Pm.max_children (5)

Cat Cat Php-fpm.conf

[Global]

PID =/usr/local/php/var/run/php-fpm.pid

Error_log =/usr/local/php/var/log/php-fpm.log

Log_level = Notice

[WWW]

Listen =/tmp/php-cgi.sock

user = www

Group = www

PM = dynamic

Pm.max_children = 20

Pm.start_servers = 2

Pm.min_spare_servers = 100

Pm.max_spare_servers = 60

Request_terminate_timeout = 100

The reason for the error, according to this principle to configure

Min_spare_servers≤start_servers≤max_spare_servers≤max_children

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/webkf/PHP/

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.