[root@rpi2 ~]# ls /usr/local/zend/
ZendGuardLoader.so
发现是有这个东西,真是神奇,通过搜索发现lnmp论坛上还真有人遇到过这个问题,帖子地址 http://bbs.vpser.net/thread-12810-1-1.html,作者说是系统dns的问题,应该是下载回来的东西损坏了,先不管,可以直接在php.ini里面注释掉这个,也或者直接去下载完整的重新放进去就可以了。
后记
重新从zend官方下载了32位的so文件放进去发现依然不行,尝试重新安装PHP的默认版本5.4.45,现在还在编译...
更新
经过一番波折终于搞定了,编译完PHP之后发现还是失败了,错误信息如下
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| http://www.gooln.com |
+-------------------------------------------+
Starting LNMP...
Starting nginx... done
Starting MySQL..... SUCCESS!
Starting php-fpm /etc/init.d/php-fpm:行57: /usr/local/php/sbin/php-fpm: 没有那个文件或目录
failed
======== upgrade php failed ======
upgrade php log: /root/upgrade_lnmp_php.log
You upload upgrade_lnmp_php.log to LNMP Forum for help.
显示的是找不到php-fpm这个文件,于是我想查找下这个文件在哪
$ whereis php-fpm
php-fpm: /usr/bin/php-fpm /usr/sbin/php-fpm /etc/php-fpm.conf /etc/php-fpm.d /usr/share/man/man8/php-fpm.8.gz
通过查找发现确实不在那个目录下面,这个简单,直接从/usr/sbin下面把php-fpm复制过去就好了
$ cd /usr/local/php/
$ ls
etc php-fpm
$ sudo mkdir sbin
$ sudo mv php-fpm sbin/
$ lnmp restart
Error: You must be root to run this script!
[kbdancerrpi@rpi2 php]$ sudo lnmp restart
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| http://www.gooln.com |
+-------------------------------------------+
Stoping LNMP...
Stoping nginx... done
Shutting down MySQL. SUCCESS!
Gracefully shutting down php-fpm warning, no pid file found - php-fpm is not running ?
Starting LNMP...
Starting nginx... done
Starting MySQL..... SUCCESS!
Starting php-fpm [01-Jan-1970 13:18:55] ERROR: failed to open error_log (/usr/local/php/var/log/php-fpm.log): No such file or directory (2)
[01-Jan-1970 13:18:55] ERROR: failed to post process the configuration
[01-Jan-1970 13:18:55] ERROR: FPM initialization failed
failed
$ cd /usr/local/php/
$ sudo mkdir var
$ cd var/
$ sudo mkdir log
$ cd log/
$ ls
$ sudo touch php-fpm.log
$ sudo lnmp restart
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| http://lnmp.org |
+-------------------------------------------+
Stoping LNMP...
Stoping nginx... done
Shutting down MySQL. SUCCESS!
Gracefully shutting down php-fpm warning, no pid file found - php-fpm is not running ?
Starting LNMP...
Starting nginx... done
Starting MySQL..... SUCCESS!
Starting php-fpm [01-Jan-1970 13:20:18] ERROR: Unable to create the PID file (/usr/local/php/var/run/php-fpm.pid).: No such file or directory (2)
[01-Jan-1970 13:20:18] ERROR: FPM initialization failed
failed
$ cd ..
$ ls
log
$ sudo mkdir run
$ sudo lnmp restart
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+--------------------------------------