VPS侦探论坛

 找回密码
 注册
查看: 3493|回复: 3

树莓派3B安装lnmp,提示php安装失败

[复制链接]
发表于 2017-8-29 18:48:22 | 显示全部楼层 |阅读模式

安装的系统为的2017-08-16-raspbian-stretch-liteRaspbian 9.1
Raspbian GNU/Linux 9 \n \l
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux
Memory is: 927 MB
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        29G  2.0G   26G   8% /
devtmpfs        460M     0  460M   0% /dev
tmpfs           464M     0  464M   0% /dev/shm
tmpfs           464M   12M  452M   3% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           464M     0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p1   42M   21M   21M  51% /boot
tmpfs            93M     0   93M   0% /run/user/1000
Hosts: ok.
PING lnmp.org (103.192.224.173) 56(84) bytes of data.
64 bytes from 103.192.224.173.static.xtom.io (103.192.224.173): icmp_seq=1 ttl=48 time=57.9 ms



============================Install PHPMyAdmin=================================
============================phpMyAdmin install completed=======================
Add Startup and Starting LNMP...
Add nginx service at system startup...
Starting nginx...  done
Add mysql service at system startup...
Starting mysql (via systemctl): mysql.service.
Add php-fpm service at system startup...
update-rc.d: error: initscript does not exist: /etc/init.d/php-fpm
include/end.sh: line 54: /etc/init.d/php-fpm: No such file or directory
============================== Check install ==============================
Checking ...
Nginx: OK
MySQL: OK
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://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.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-8-29 19:48:44 | 显示全部楼层


看一下是否有 /usr/include/arm-linux-gnueabihf/ 目录
有的话 ln -sf /usr/include/arm-linux-gnueabihf/curl /usr/include/ 再重新安装应该就可以了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-8-30 13:10:31 | 显示全部楼层

只在内网使用,可以不绑定域名吗?


我没有域名,而且只在内网使用,可以不绑域名创建虚拟主机吗?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-8-31 11:44:12 | 显示全部楼层

回复 3# 的帖子




lnmp vhost add 添加就必须输入域名,域名可以随便输入,自己本机上hosts绑定就可以了
也可以直接在默认目录下建站
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-20 15:15 , Processed in 0.027189 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表