Centos7.2安装ecshop

第一步:

yum install httpd

yum install PHP       

yum install MySQL

设置启动 chkconfig --levels 235 mysqld on    chkconfig --levels 235 httpd on

启动mysql  service mysqld start 

设置 MySQL 数据 root 账户的密码:

[root@localhost ~]# mysql_secure_installation

当出现如下提示时候直接按回车:

Enter current password for root

出现如下再次回车:

Set root password? [Y/n]

出现如下提示输入你需要设置的密码,回车后在输入一次确认:

New password:

接下来还会有四个确认,分别是:

Remove anonymous users? [Y/n]

Disallow root login remotely? [Y/n]

Remove test database and access to it? [Y/n]

Reload privilege tables now? [Y/n]

直接回车即可。

第二步:

上传ECShop_V2.7.3_UTF8_release0411.zip下的upload文件夹中的所有文件 到/var/www/html/

service  httpd  restart  重启Apache

第三步:访问http://ip 

遇到的问题1 安装ecshop出现如下状况怎么办?显示不支持mySQL、不支持GD版本、不支持JPEG、GIF、PNG  

解决需要在线安装下面的软件,顺序不能错 yum -y install mysql mysql-server mysql-devel php-mysql gd gd-devel httpd php php-gd(回车),

基本上所有的都支持了,但是jpeg出现了不支持。找了好多网站,这个问题也困扰了我一天。一种方法说php降级到5.2可以解决,第二种方法

检测环境的时候提示:是否支持 JPEG是不支持的。

解决:lib_installer.php中第100行,JPEG写成了JPG,正确的应该是:

$jpeg_enabled = ($gd_info['JPEG Support'] === true) ? $_LANG['support'] : $_LANG['not_support'];

继续  安装时出现Warning: date_default_timezone_get():

解决:

找到php安装目录,修改php.ini

[Date]

; Defines the default timezone used by the date functions

; http://php.net/date.timezone

date.timezone =Asia/Shanghai

你可能感兴趣的:(centos)