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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章