darkshark1 2021-09-12 00:29 采纳率: 100%
浏览 350
已结题

centos 7 安装nextcloud 提示我的php version 不够,请问如何升级 ?

This version of Nextcloud requires at least PHP 7.3
You are currently running 7.2.24. Please update your PHP version.

我卸载了以前的php,在我的vps上安装了php7.4

[root@vultr ~]# php -v
PHP 7.4.23 (cli) (built: Aug 24 2021 16:33:30) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.23, Copyright (c), by Zend Technologies

但在浏览器中输入我的ip,还是会提示我的在运行7.2.24 ,我在nextcloud论坛找到了有人提出的相同问题,他们的回复是
Nothing is going wrong here, but you’re mixing-up two different things. In general two different PHP components are involved here, the web server and the command line component. You’ve only tested the command line (CLI) component. You need to update the web component now too to align both versions.
说php有两个不同的东西,一个是命令行,一个是服务器端,我现在安装升级的只是cli,还要升级web server上的php到更高版本,所以问题是web server的php到底怎么升级呢??

  • 写回答

2条回答 默认 最新

  • 宝山的博客 云计算领域优质创作者 2021-09-12 10:03
    关注

    可以下载其它版本试试:这个最先版本https://www.php.net/distributions/php-8.0.10.tar.gz

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 9月25日
  • 已采纳回答 9月17日
  • 创建了问题 9月12日

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器