VPS侦探论坛

 找回密码
 注册
查看: 5232|回复: 7

lnmp1.5 使用upgrade升级php 出现问题

[复制链接]
发表于 2019-5-23 23:47:56 | 显示全部楼层 |阅读模式

因为laravel-admin需要用到php_fileinfo,我将Enable_PHP_Fileinfo='n' 后面的n改成y后使用upgrade将php 7.1.18重新安装了一遍,但最后出错了,不知所措cp: cannot create regular file ‘/etc/init.d/php-fpm’: Permission denied
chmod: cannot access ‘/etc/init.d/php-fpm’: No such file or directory







本帖子中包含更多资源

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

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


可能还需要补充一下,我上面上传的日志是第二次安装的日志,第一次安装卡在开头就不动了,被我强制关掉了,然后下次安装就提示
  1. include/main.sh: line 626: /usr/local/php/bin/php-config: No such file or directory
  2. include/main.sh: line 627: /usr/local/php/bin/php-config: No such file or directory
复制代码
这是第一次安装的日志:
  1. Current PHP Version:7.1.18
  2. You can get version number from http://www.php.net/
  3. Please enter a PHP Version you want:
  4. Press any key to start...or Press Ctrl+c to cancel

  5. Notice: php-7.1.18.tar.bz2 not found!!!download now...
  6. --2019-05-23 22:09:57--  http://jp2.php.net/distributions/php-7.1.18.tar.bz2
  7. Resolving jp2.php.net (jp2.php.net)... 119.81.61.41, 2a02:cb40:200::1ad
  8. Connecting to jp2.php.net (jp2.php.net)|119.81.61.41|:80... connected.
  9. HTTP request sent, awaiting response... 301 Moved Permanently
  10. Location: https://www.php.net/distributions/php-7.1.18.tar.bz2 [following]
  11. --2019-05-23 22:09:58--  https://www.php.net/distributions/php-7.1.18.tar.bz2
  12. Resolving www.php.net (www.php.net)... 119.81.61.41, 2a02:cb40:200::1ad
  13. Connecting to www.php.net (www.php.net)|119.81.61.41|:443... connected.
  14. HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

  15.     The file is already fully retrieved; nothing to do.

  16. Download php-7.1.18.tar.bz2 successfully!
  17. +-------------------------------------------+
  18. |    Manager for LNMP, Written by Licess    |
  19. +-------------------------------------------+
  20. |              https://lnmp.org             |
  21. +-------------------------------------------+
  22. Stoping LNMP...
  23. Stoping nginx...  done
  24. Shutting down MySQL. SUCCESS!
  25. Gracefully shutting down php-fpm . done
  26. Installing Dependent for PHP...
  27. Loaded plugins: fastestmirror
  28. Loading mirror speeds from cached hostfile
  29. * base: mirrors.aliyun.com
  30. * epel: mirrors.tuna.tsinghua.edu.cn
  31. * extras: mirrors.aliyun.com
  32. * updates: mirrors.aliyun.com
  33. http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel
  34. Trying other mirror.
复制代码
然后就卡了,很久也没反应,就被我强制kill了,后来提示找不到php7.1.18的安装包,我就把lnmp1.5-full/src/php-7.1.18.tar.bz2 复制到lnmp1.5-full文件夹里,就提示不用下载就安装了。后来就有第一楼的错误日志了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2019-5-24 09:56:03 | 显示全部楼层

Copy php-fpm init.d file...
cp: cannot create regular file ‘/etc/init.d/php-fpm’: Permission denied
chmod: cannot access ‘/etc/init.d/php-fpm’: No such file or directory
安装成功了,只不过最后过程中php-fpm的init.d脚本因为未知原因无法拷贝过去
可以到src/php-7.1.18/目录下
cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
chmod +x /etc/init.d/php-fpm
/etc/init.d/php-fpm start
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-5-24 21:28:41 | 显示全部楼层



licess 发表于 2019-5-24 09:56
Copy php-fpm init.d file...
cp: cannot create regular file ‘/etc/init.d/php-fpm’: Permission denie ...

我知道未知原因是什么,因为云锁,气死╮(╯_╰)╭
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2019-5-25 15:40:06 | 显示全部楼层

路过看看,帮顶一下

军哥运维代购:http://shop63846532.taobao.com/

发表于 2019-11-28 23:24:07 | 显示全部楼层

licess 发表于 2019-5-24 09:56
Copy php-fpm init.d file...
cp: cannot create regular file ‘/etc/init.d/php-fpm’: Permission denie ...

php 7.3和7.4的源码包里没有init.d.php-fpm    只有init.d.php-fpm.in了...
发表于 2019-11-29 09:13:20 | 显示全部楼层

lxtx 发表于 2019-11-28 23:24
php 7.3和7.4的源码包里没有init.d.php-fpm    只有init.d.php-fpm.in了...

源码肯定是没有,只有build了才行
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-11-29 10:46:14 | 显示全部楼层

licess 发表于 2019-11-29 09:13
源码肯定是没有,只有build了才行

嗯 了解了~
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-23 03:22 , Processed in 0.042181 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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