Home>Article>Backend Development> What should I do if php-fpm cannot be started?
Solution to the problem that php-fpm cannot start: 1. Re-download a 64-bit "ZendGuardLoader.so"; 2. Place it under "/usr/local/zend/"; 3. Re-execute Just "lamp php-fpm start".
The operating environment of this article: ubuntu 16.04 system, PHP5.3 version, DELL G3 computer
php-fpm startup What should I do if it doesn’t work? php-fpm failed to start?
Startup error phenomenon:wrong ELF class: ELFCLASS32
##
test@ubuntu:/usr/local/zend$ sudo lnmp php-fpm start +-------------------------------------------+ | Manager for LNMP, Written by Licess | +-------------------------------------------+ | http://lnmp.org | +-------------------------------------------+ Starting php-fpm Failed loading /usr/local/zend/ZendGuardLoader.so: /usr/local/zend/ZendGuardLoader.so: wrong ELF class: ELFCLASS32 [03-May-2017 00:03:15] ERROR: FPM initialization failed failed
This error is because the ZendGuardLoader.so module called by the php-fpm module is a 32-bit module. However, the current system is a 64-bit system, so an error is reported at startup. Re-download a 64-bit ZendGuardLoader.so and put it in / usr/local/zend/, and then re-execute lamp php-fpm start.
The following are the repair steps:
Use the file command to view the file information of the current ZendGuardLoader.so. You can see that the current so file is 32 bit file.
##test@ubuntu:/usr/local/zend$ file ZendGuardLoader.so |
ZendGuardLoader.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped |
Recommended study: " PHP Video Tutorial | "
The above is the detailed content of What should I do if php-fpm cannot be started?. For more information, please follow other related articles on the PHP Chinese website!