[英]Moodle can't detect my php version
i've installed moodle from github.我已经从github安装了moodle。 I'm using php5, then i can't install it.
我正在使用php5,然后我无法安装它。 So, i'm upgrade my php to php7.1, but still error.
所以,我将我的 php 升级到 php7.1,但仍然出错。 The error message like this : Moodle 3.4 or later requires at least PHP 7.0.0 (currently using version 5.6.26-1).
像这样的错误信息: Moodle 3.4 或更高版本需要至少 PHP 7.0.0(当前使用版本 5.6.26-1)。 Some servers may have multiple PHP versions installed, are you using the correct executable?
有些服务器可能安装了多个 PHP 版本,您使用的是正确的可执行文件吗?
My php version : PHP 7.1.6-2 (cli) (built: Jun 14 2017 05:31:31) ( NTS )我的 php 版本:PHP 7.1.6-2 (cli)(内置:2017 年 6 月 14 日 05:31:31)(NTS)
Can anyone help me?谁能帮我?
Your php7 version looks to be the php-cli version and is not the one used by your http server (apache or other) : display a phpinfo();
您的 php7 版本看起来是 php-cli 版本,而不是您的 http 服务器(apache 或其他)使用的版本:显示
phpinfo();
in your browser.在您的浏览器中。
It looks like you are using debian, first remove php5 : apt-get remove php5* libapache2-mod-php5
and install the 7 version, something like :看起来您正在使用 debian,首先删除 php5 :
apt-get remove php5* libapache2-mod-php5
并安装 7 版本,例如:
apt-get install apache2 php7.0 libapache2-mod-php7.0 php7.0-cli php7.0-zip php7.0-intl php7.0-common php7.0-curl php7.0-imagick php7.0-gd php7.0-json php7.0-ldap php7.0-mcrypt php7.0-memcache php7.0-memcached php7.0-mysql php7.0-pgsql php7.0-readline php7.0-bcmath php7.0-mbstring php7.0-xml
Moodle has no concern with this. Moodle 不关心这个。
I had the same problem.我有同样的问题。 After upgrading xampp, my problem has solved.
升级xampp后,我的问题解决了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.