使用AWS服务器(EC2 CentOS Linux 7) 部署大淘客CMS。
首先,将大淘客生成的index.php 放到服务器根目录下(二级)。
已有Apache环境,新安装php环境:
[root@ip-172-31-20-226 /]# yum install php php-devel
问题1:
提示“ 请先开启mbstring扩展 ”安装mbstring:[root@ip-172-31-20-226 /]# yum install -y php-mbstring修改配置文件:[root@ip-172-31-20-226 /]# vim /etc/php.ini解开注释: extension=php_mbstring.dll重启Apache[root@ip-172-31-20-226 /]# systemctl restart httpd
问题2:
提示“ cache无效,请先设置目录读写权限,请联系您的空间或者服务器提供商 ”打出路径,发现是“/var/www/html/haoshengBUY/cache”
创建cache文件夹,修改haoshengBUY及下属目录权限为可读写[root@ip-172-31-20-226 html]# chmod 777 haoshengBUY
仍然报错, 最后发现是selinux的问题,安装系统时默认开启的关闭 selinux: