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
成功安裝。
2.安裝PHP7
終端再次運行如下命令:
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php70w
這樣就大功告成了。
3.驗證安裝
終端命令:PHP -v,顯示當前PHP版本
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-iconv
去 https://www.magentochina.org/blog/configure-magento2-system/magento-2-system-requirements.html 檢查依賴要求
最後按照 https://www.magentochina.org/blog/magento-guide/install-magento-2-1-with-composer.html 進行安裝
centos7安裝magento隨記