Copy the PHP-FPM program from one server to another after starting the prompt error:
/etc/init.d/php-fpm-5.4 startstarting php-fpm [27-jul-2017 11:31:39] notice: php message: php warning: php startup: unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/gearman.so ' - libgearman.so.8: cannot open shared object file: no such file or directory in unknown on line 0 done
Look at the error message, I can't find libgearman.so.8.
Start is suspected direct copy of the gearman.so extension is not available, download from the Web Gearman recompile:
Download latest Version: $ WG $ tar zxvf gearman-1.1.1.tgz$ cd gearman-1.1.1/$ phpize$./configure--with-php-config=/usr/local/php/bin/ php-config$ make$ make Install
There was an error in the Make process:
Configure:WARNING:You would need re2c 0.13.4 or later if you want to regenerate PHP parsers.checking for gawk ... gawkchec King whether to enable Gearman support ... yes, Sharednot found
Tip need to install Libgearman, here to know where the problem is, direct yum installation Libgearman
Yum install libgearman ....... dependencies resolved==================================================================================== ==================================== package Arch version Repository size========================================================== ==============================================================installing: libgearman x86_64 1.1.8-2.el6 epel 70 kinstalling for dependencies: boost-system x86_64 1.41.0-28.el6 base 26 ktransaction summary========================================================================================================== ==============install 2 package (s) ...        2/2&NBSP, ..... installed: libgearman.x86_64 0:1.1.8-2.el6 Dependency Installed: boost-system.x86_64 0:1.41.0-28.el6 complete!
Can be installed, directly installed after restarting the PHP-FPM service, no prompt error. Solve.
/etc/init.d/php-fpm-5.4 restartgracefully shutting down php-fpm. Donestarting PHP-FPM Done
PHP-FPM start error: Libgearman.so.8:no such file or directory in Unknown on line 0