CentOS 7 for ARM one-click Lnmp Installation failed, centoslnmp

Source: Internet
Author: User
Tags sapi

CentOS 7 for ARM one-click Lnmp Installation failed, centoslnmp

Background
  
The Raspberry Pi was installed with CentOS 7 in the front, and the server environment was quickly set up when the National Day holiday came back. For convenience, one-click lnmp quick deployment was prepared, and the installation was unsuccessful...
  
Error
  
According to the previous experience, it is really slow to install on my Raspberry Pi. After all, the compilation is required, and the CPU is not powerful, after lunch, I found that it was finished, but failed. The error message is as follows:

============================== Check install ==============================Checking ...Nginx: OKMariaDB: OKError: PHP install failed.Sorry, Failed to install LNMP!Please visit http://bbs.vpser.net/forum-25-1.html feedback errors and logs.You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.

If the PHP installation fails, it doesn't matter if an error is reported. You can use the./upgrade. sh script to reinstall the PHP installation.

+-------------------------------------------+|    Manager for LNMP, Written by Licess    |+-------------------------------------------+|              http://lnmp.org              |+-------------------------------------------+Starting LNMP...Starting nginx...  doneStarting MySQL.... SUCCESS! /bin/lnmp: line 27: /etc/init.d/php-fpm: No such file or directory======== upgrade php failed ======upgrade php log: /root/upgrade_lnmp_php.logYou upload upgrade_lnmp_php.log to LNMP Forum for help.

Found
  
Check the Installation Log carefully and find the key information.

configure: error: Please reinstall the libcurl distribution -    easy.h should be in <curl-dir>/include/curl/make: *** No targets specified and no makefile found.  Stop.make: *** No rule to make target `install'.  Stop.

Here is an error saying "please install libcurl". It's strange that I didn't encounter this problem during VPS installation, is it CentOS for Raspberry Pi that castrated this?
  
Solution
  
Follow the error prompt to install the package and try to use yum for direct installation. However, this is not found in the package manager. Download the compilation and installation on the official website.

CentOS compiled SVNdocx http://www.gooln.com/document/19937.html

wget https://curl.haxx.se/download/curl-7.50.3.tar.gztar zvxf curl-7.50.3.tar.gzcd curl-7.50.3./configure --enable-sharedmakemake install

After a long compilation, the compilation and installation are successful.
  
Continue to try to install PHP. This time it is normal to compile PHP.

Generating filesconfigure: creating ./config.statuscreating main/internal_functions.ccreating 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.specconfig.status: creating main/build-defs.hconfig.status: creating scripts/phpizeconfig.status: creating scripts/man1/phpize.1config.status: creating scripts/php-configconfig.status: creating scripts/man1/php-config.1config.status: creating sapi/cli/php.1config.status: creating sapi/fpm/php-fpm.confconfig.status: creating sapi/fpm/init.d.php-fpmconfig.status: creating sapi/fpm/php-fpm.serviceconfig.status: creating sapi/fpm/php-fpm.8config.status: creating sapi/fpm/status.htmlconfig.status: creating sapi/cgi/php-cgi.1config.status: creating ext/phar/phar.1config.status: creating ext/phar/phar.phar.1config.status: creating main/php_config.hconfig.status: executing default commands

After a long compilation, I finally .....
  
Compilation is completed,...

+-------------------------------------------+|    Manager for LNMP, Written by Licess    |+-------------------------------------------+|              http://lnmp.org              |+-------------------------------------------+Starting LNMP...Starting nginx...  doneStarting 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 ======

It seems that there are still some problems, but the problem is not big. It seems that an extension is missing. Check the directory to see if there is any such thing.

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

This is amazing. I found someone on the lnmp forum has encountered this problem through searching.
  
Postscript
  
Re-download the 32-bit so file from zend and try to reinstall the default PHP version 5.4.45. The file is still being compiled...
  
Update
  
After some twists and turns, I finally got it done. After compiling PHP, I found it still failed. The error message is as follows:

+ Keys + | Manager for LNMP, Written by Licess | + ----------------------------------------- + | http://www.gooln.com | + keys + Starting LNMP... Starting nginx... doneStarting MySQL... SUCCESS! Starting php-fpm/etc/init. d/php-fpm: Row 57:/usr/local/php/sbin/php-fpm: there is no file or directory failed ======== upgrade php failed ===== upgrade php log:/root/upgrade_lnmp_php.logYou upload upgrade_lnmp_php.log to LNMP Forum for help. the file php-fpm is not found, so I want to find the file $ whereis php-fpmphp-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 find that it is not that directory, this is simple. Just copy php-fpm from/usr/sbin.
$ cd /usr/local/php/$ lsetc  php-fpm$ sudo mkdir sbin$ sudo mv php-fpm sbin/$ lnmp restartError: 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...  doneShutting down MySQL. SUCCESS! Gracefully shutting down php-fpm warning, no pid file found - php-fpm is not running ?Starting LNMP...Starting nginx...  doneStarting 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

Yes. continue to report the error as prompted.

$ 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...  doneShutting down MySQL. SUCCESS! Gracefully shutting down php-fpm warning, no pid file found - php-fpm is not running ?Starting LNMP...Starting nginx...  doneStarting 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

Still report error. Continue

$ cd ..$ lslog$ sudo mkdir run$ sudo lnmp restart+-------------------------------------------+|    Manager for LNMP, Written by Licess    |+-------------------------------------------+|              http://lnmp.org              |+-------------------------------------------+Stoping LNMP...Stoping nginx...  doneShutting down MySQL. SUCCESS! Gracefully shutting down php-fpm warning, no pid file found - php-fpm is not running ?Starting LNMP...Starting nginx...  doneStarting MySQL..... SUCCESS! Starting php-fpm  done

OK. It's really a twist. I guess the lnmp author hasn't tested whether the lnmp runs on the ARM. I hope it can be improved...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.