CentOS 7 for ARM 安装一键Lnmp失败


当前第2页 返回上一页

CentOS 编译SVNdocx

1

2

3

4

5

6

wget https://curl.haxx.se/download/curl-7.50.3.tar.gz

tar zvxf curl-7.50.3.tar.gz

cd curl-7.50.3

./configure --enable-shared

make

make install

  经过漫长的编译终于编译安装成功了
  
  继续尝试安装PHP,这回算是正常进行编译PHP了

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

Generating files

configure: creating ./config.status

creating main/internal_functions.c

creating main/internal_functions_cli.c

+--------------------------------------------------------------------+

| License:                                                           |

| This software is subject to the PHP License, available in this     |

| distribution in the file LICENSE.  By continuing this installation |

| process, you are bound by the terms of this license agreement.     |

| If you do not agree with the terms of this license, you must abort |

| the installation process at this point.                            |

+--------------------------------------------------------------------+

 

Thank you for using PHP.

 

config.status: creating php5.spec

config.status: creating main/build-defs.h

config.status: creating scripts/phpize

config.status: creating scripts/man1/phpize.1

config.status: creating scripts/php-config

config.status: creating scripts/man1/php-config.1

config.status: creating sapi/cli/php.1

config.status: creating sapi/fpm/php-fpm.conf

config.status: creating sapi/fpm/init.d.php-fpm

config.status: creating sapi/fpm/php-fpm.service

config.status: creating sapi/fpm/php-fpm.8

config.status: creating sapi/fpm/status.html

config.status: creating sapi/cgi/php-cgi.1

config.status: creating ext/phar/phar.1

config.status: creating ext/phar/phar.phar.1

config.status: creating main/php_config.h

config.status: executing default commands

  经过漫长的编译,终于.....
  
  编译完成了,但是...

1

2

3

4

5

6

7

8

9

10

11

+-------------------------------------------+

|    Manager for LNMP, Written by Licess    |

+-------------------------------------------+

|                            |

+-------------------------------------------+

Starting LNMP...

Starting nginx...  done

Starting MySQL...... SUCCESS!

Starting php-fpm Failed loading /usr/local/zend/ZendGuardLoader.so:  /usr/local/zend/ZendGuardLoader.so: cannot open shared object file: No such file or directory

 done

======== upgrade php completed ======

似乎还是有些问题,不过问题不大,看起来像是某个扩展丢了,到这个目录查看下到底有没有这个东西

1

2

[root@rpi2 ~]# ls /usr/local/zend/                  

ZendGuardLoader.so

  发现是有这个东西,真是神奇,通过搜索发现lnmp论坛上还真有人遇到过这个问题,帖子地址 ,作者说是系统dns的问题,应该是下载回来的东西损坏了,先不管,可以直接在php.ini里面注释掉这个,也或者直接去下载完整的重新放进去就可以了。
  
  后记
  
  重新从zend官方下载了32位的so文件放进去发现依然不行,尝试重新安装PHP的默认版本5.4.45,现在还在编译...
  
  更新
  
  经过一番波折终于搞定了,编译完PHP之后发现还是失败了,错误信息如下

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

+-------------------------------------------+

|    Manager for LNMP, Written by Licess    |

+-------------------------------------------+

|                            |

+-------------------------------------------+

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复制过去就好了

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

$ 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    |

+-------------------------------------------+

|                            |

+-------------------------------------------+

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

没错,继续报错,根据提示来

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

$ 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    |

+-------------------------------------------+

|                            |

+-------------------------------------------+

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

依然报错,继续

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

$ cd ..

$ ls

log

$ sudo mkdir run

$ sudo lnmp restart

+-------------------------------------------+

|    Manager for LNMP, Written by Licess    |

+-------------------------------------------+

|                            |

+-------------------------------------------+

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  done

OK,终于搞定了,真是曲折啊,估计lnmp作者没有测试过lnmp跑在ARM上会不会出问题,希望能够改进...

以上就是CentOS 7 for ARM 安装一键Lnmp失败的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

CentOS /rhel系统怎么更新安全补丁

CentOS如何配置dns

如何解决CentOS下php中文乱码的问题

CentOS命令行中文乱码解决方法

linux was安装步骤

tomcat在CentOS下出现中文乱码怎么办

CentOS怎么修改系统语言

CentOS忘记密码怎么办

CentOS mysql安装目录在哪

CentOS系统如何关机

更多相关阅读请进入《CentOS》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...