[[email protected] ~]# yum install httpd

[[email protected] ~]# service httpd start

[[email protected] ~]# chkconfig httpd on

[[email protected] ~]# service mysqld start

[[email protected] ~]# chkconfig mysqld on

[[email protected] ~]# /usr/bin/mysqladmin -u

[[email protected] kaixin]# mysql -u root -p123456

[[email protected] kaixin]# cd /var/www/html/

[[email protected] html]# vim index.php

[[email protected] html]# cat  index.php

<?php

phpinfo();

?>

使用浏览器访问http://192.168.1.63/index.php,若出现PHP信息页即支持PHP

[[email protected]~]# unzip -d /usr/local/src/ecshop 

ECShop_V2.7.3_UTF8_release0411.zip

[[email protected] ECShop_V2.7.3_UTF8_release0411]# ls

docs  upgrade upload

上传upload;修改权限:

chown apache:apache ecshop/ -R

http://192.168.1.63/ecshop/install/index.php

LAMP架构搭建网站商城

安装时报错:

创建管理员帐号............失败

Warning: date(): It is not safe to rely on the system'stimezone settings. You are *required* to use the date.timezone setting or thedate_default_timezone_set() function. In case you used any of those methods andyou are still getting this warning, you most likely misspelled the timezoneidentifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in/home/babap/ecshop/includes/lib_time.php on line 28 OK

修改方法:

vimecshop/install/includes/init.php

1<?php

2 date_default_timezone_set('Asia/Shanghai');第二行插入此代码,设置时区

成功后点击进入网站首页

LAMP架构搭建网站商城

相关文章: