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/