lnmp1.5 使用upgrade升级php 出现问题
因为laravel-admin需要用到php_fileinfo,我将Enable_PHP_Fileinfo='n' 后面的n改成y后使用upgrade将php 7.1.18重新安装了一遍,但最后出错了,不知所措{:1_36:}cp: cannot create regular file ‘/etc/init.d/php-fpm’: Permission deniedchmod: cannot access ‘/etc/init.d/php-fpm’: No such file or directory
可能还需要补充一下,我上面上传的日志是第二次安装的日志,第一次安装卡在开头就不动了,被我强制关掉了,然后下次安装就提示
include/main.sh: line 626: /usr/local/php/bin/php-config: No such file or directory
include/main.sh: line 627: /usr/local/php/bin/php-config: No such file or directory这是第一次安装的日志:
Current PHP Version:7.1.18
You can get version number from http://www.php.net/
Please enter a PHP Version you want:
[0;32mPress any key to start...or Press Ctrl+c to cancel[0m
Notice: php-7.1.18.tar.bz2 not found!!!download now...
--2019-05-23 22:09:57--http://jp2.php.net/distributions/php-7.1.18.tar.bz2
Resolving jp2.php.net (jp2.php.net)... 119.81.61.41, 2a02:cb40:200::1ad
Connecting to jp2.php.net (jp2.php.net)|119.81.61.41|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.php.net/distributions/php-7.1.18.tar.bz2
--2019-05-23 22:09:58--https://www.php.net/distributions/php-7.1.18.tar.bz2
Resolving www.php.net (www.php.net)... 119.81.61.41, 2a02:cb40:200::1ad
Connecting to www.php.net (www.php.net)|119.81.61.41|:443... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable
The file is already fully retrieved; nothing to do.
Download php-7.1.18.tar.bz2 successfully!
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
Stoping LNMP...
Stoping nginx...done
Shutting down MySQL. SUCCESS!
Gracefully shutting down php-fpm . done
Installing Dependent for PHP...
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/repomd.xml: repomd.xml does not match metalink for epel
Trying other mirror.然后就卡了,很久也没反应,就被我强制kill了,后来提示找不到php7.1.18的安装包,我就把lnmp1.5-full/src/php-7.1.18.tar.bz2 复制到lnmp1.5-full文件夹里,就提示不用下载就安装了。后来就有第一楼的错误日志了
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 licess 发表于 2019-5-24 09:56
Copy php-fpm init.d file...
cp: cannot create regular file ‘/etc/init.d/php-fpm’: Permission denie ...
我知道未知原因是什么,因为云锁,气死╮(╯_╰)╭ 路过看看,帮顶一下 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了... lxtx 发表于 2019-11-28 23:24
php 7.3和7.4的源码包里没有init.d.php-fpm 只有init.d.php-fpm.in了...
源码肯定是没有,只有build了才行 licess 发表于 2019-11-29 09:13
源码肯定是没有,只有build了才行
嗯 了解了~:lol
页:
[1]