80后的细娃儿

/usr/local/zend/ZendOptimizer.so: wrong ELF class: ELFCLASS64

安装LNMP出现这个问题的解决方法

 

[root@vps ~]
Shutting down php_fpm . done
Starting php_fpm Failed loading /usr/local/zend/ZendOptimizer.so:  /usr/local/zend/ZendOptimizer.so: wrong ELF class: ELFCLASS64
done

需要重新安装zend的 !
wget  http://files.directadmin.com/services/custombuild/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

tar zxvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

mkdir -p /usr/local/zend/

cp ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/ZendOptimizer.so /usr/local/zend/

重新启动

/usr/local/php/sbin/php-fpm restart

点赞