欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

centos6.5下如何安裝ecshop?centos6.5下安裝ecshop的詳細(xì)教程

  發(fā)布時(shí)間:2017-02-06 11:45:32   作者:佚名   我要評(píng)論
很多朋友再問(wèn)centos6.5下如何安裝ecshop?下面小編將為大家?guī)?lái)centos6.5下安裝ecshop的圖文教程;希望能夠幫助到大家!有需要的朋友一起去看看吧

第一步:

shell>yum install httpd

shell>yum install PHP       

shell>yum install MySQL

設(shè)置啟動(dòng) chkconfig --levels 235 mysqld on    chkconfig --levels 235 httpd on

啟動(dòng)mysql  service mysqld start 

設(shè)置 MySQL 數(shù)據(jù) root 賬戶的密碼:

[root@localhost ~]# mysql_secure_installation

當(dāng)出現(xiàn)如下提示時(shí)候直接按回車:

Enter current password for root

出現(xiàn)如下再次回車:

Set root password? [Y/n]

出現(xiàn)如下提示輸入你需要設(shè)置的密碼,回車后在輸入一次確認(rèn):

New password:

接下來(lái)還會(huì)有四個(gè)確認(rèn),分別是:

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/

改名 mv    upload   ecshop

修改apache配置文件

vi /etc/httpd/conf/httpd.conf

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

<VirtualHost 你linux的ip地址 192.168.1.111>

 ServerAdmin root

 DocumentRoot /etc/www/html/ecshop

</VirtualHost>

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

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

    Options FollowSymLinks

    AllowOverride All    --------以前是none

</Directory>

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

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

      請(qǐng)將前面的#刪除。

4.關(guān)閉防火墻和selinux機(jī)制。重啟機(jī)器。

第三步:訪問(wèn)http://ip 

遇到的問(wèn)題1 安裝ecshop出現(xiàn)如下?tīng)顩r怎么辦?顯示不支持mySQL、不支持GD版本、不支持JPEG、GIF、PNG  

解決需要在線安裝下面的軟件,順序不能錯(cuò) yum -y install mysql mysql-server mysql-devel php-mysql gd gd-devel httpd php php-gd(回車),

基本上所有的都支持了,但是jpeg出現(xiàn)了不支持。找了好多網(wǎng)站,這個(gè)問(wèn)題也困擾了我一天。一種方法說(shuō)php降級(jí)到5.2可以解決,第二種方法

檢測(cè)環(huán)境的時(shí)候提示:是否支持 JPEG是不支持的。

解決:lib_installer.php中第100行,JPEG寫(xiě)成了JPG,正確的應(yīng)該是:

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

繼續(xù)  安裝時(shí)出現(xiàn)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

相關(guān)文章

最新評(píng)論