close
安裝Opencart其實不難,但是在Linux系統安裝,確實有些技巧要注意
除了要安裝Apache 、PHP 、MySQL外
還要
CentOS 7 關閉 SELinux
CentOS 7 的 SELinux 及 Firewalld 防火牆都是安全相關的套件, RHEL 及 CentOS 均預設開啟, 但如果在開發或測試的機器上, 將它們關閉對除錯方便不少。
關閉 SELinux:
開啟檔案 /etc/selinux/config:
# vi /etc/selinux/config
找到以下一行:
SELINUX=enforce
改成:
SELINUX=disabled
安裝MCrypt PHP Extension
# install EPEL with yum
yum -y install epel-release
# install php-mcrypt
yum -y install php-mcrypt
Add this in php.ini
extension=mcrypt.so
httpd restart
修改資料夾與檔案權限
OpenCart用戶與群組為apache,讀寫權限設定為777。
# cd /var/www/html
# chown -R apache:apache ./
# chmod -R 777 ./
把config-dist.php文件改名為config.php,需要修改網站跟目錄及admin目錄下的檔案。
# cd /var/www/html
# cp config-dist.php config.php
# cd admin
# cp config-dist.php config.php
最後記得做
yum update
這樣就可以順利完成安裝
文章標籤
全站熱搜
留言列表