歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> centos6.5 安裝 ecshop

centos6.5 安裝 ecshop

日期:2017/3/3 17:45:51   编辑:學習Linux

centos6.5 安裝 ecshop

centos6.5 安裝 ecshop


第一步:

shell>yum install httpd

shell>yum installPHP

shell>yum installMySQL

設置啟動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/

改名mvuploadecshop

修改apache配置文件

vi /etc/httpd/conf/httpd.conf

####################在文件最後修改(加入)#####################

<VirtualHost你linux的ip地址 192.168.1.111>

ServerAdmin root

DocumentRoot/etc/www/html/ecshop

</VirtualHost>

繼續操作 httpd.conf 文件中,注意將 /ecshop 替換為您的商店的實際安裝目錄。

<Directory /ecshop> -------》改成/var/www/html/ecshop

Options FollowSymLinks

AllowOverrideAll --------以前是none

</Directory>

3、在 httpd.conf 中搜索 LoadModule rewrite_module,將該行前面的 # 號刪除。

如果您的 Apache 是1.3.x版本還需要查找 AddModule mod_rewrite.c,

請將前面的#刪除。

4.關閉防火牆和selinux機制。重啟機器。

第三步:訪問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

http://xxxxxx/Linuxjc/1184801.html TechArticle

Copyright © Linux教程網 All Rights Reserved