centos7安装magento随记 这就是个坑,果断放弃

在centos7经过yum安装PHP7,首先在终端运行:
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
提示错误:
error: Failed dependencies:
epel-release >= 7 is needed by webtatic-release-7-3.noarch
须要先安装epel-release。

1.安装epel-release
经过命令:
yum -y install epel-release 
成功安装。php

yum -y updatehtml

开始安装数据库linux

参考 https://linux.cn/article-8320-1.htmlweb

 

设置数据库格式utf8数据库

参考 http://www.cnblogs.com/vingi/articles/4302330.htmljson


2.安装PHP7
终端再次运行以下命令:
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
成功获取PHP7的yum源,而后再执行:
yum install php70w
这样就大功告成了。
3.验证安装
终端命令:PHP -v,显示当前PHP版本centos

yum install php70w-curl php70w-intl php70w-mbstring php70w-mcrypt php70w-mhash php70w-openssl php70w-PDO php70w-MySQL php70w-SimpleXML php70w-soap php70w-xml php70w-xsl php70w-zip php70w-json php70w-iconvphp7

去 https://www.magentochina.org/blog/configure-magento2-system/magento-2-system-requirements.html 检查依赖要求composer

最后按照 https://www.magentochina.org/blog/magento-guide/install-magento-2-1-with-composer.html 进行安装curl

相关文章
相关标签/搜索