Home>Article>Backend Development> What should I do if php-fpm cannot be started?

What should I do if php-fpm cannot be started?

藏色散人
藏色散人 Original
2021-10-27 10:15:14 3546browse

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".

What should I do if php-fpm cannot be started?

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.

##ZendGuardLoader.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped Download and unzip the 64-bit ZendGuardLoader, then replace the original .so file and restart php-fpm
##test@ubuntu:/usr/local/zend$ file ZendGuardLoader.so

##wget http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23 -x86_64.tar.gz ##tar -xvf ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz cp ZendGuardLoader-php-5.3-linux-glibc23-x86_64/php-5.3.x/ZendGuardLoader.so /usr/local/zend / Use file again to look at the replaced ZendGuardLoader.so, and you can see that it is currently a 64-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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn