一个网站包括,北京建筑有限公司,安徽省交通运输厅门户网站,不花钱做推广的网站作业环境服务器端#xff1a;RHEL6.0 IP#xff1a;10.8.110.8 客户端#xff1a;Windows 7 IP#xff1a;10.8.110.28 一、ECShop简介 ECShop是上海商派网络科技有限公司#xff08;ShopEx#xff09;旗下——B2C独立网店系统#xff0c;适合企业及个人快速构建个… 作业环境服务器端RHEL6.0 IP10.8.110.8 客户端Windows 7 IP10.8.110.28 一、ECShop简介 ECShop是上海商派网络科技有限公司ShopEx旗下——B2C独立网店系统适合企业及个人快速构建个性化网上商店。系统是基于PHP语言及MYSQL数据库构架开发的跨平台开源程序。目前最新版本为2.7.2。 ECShop网店系统可免费下载、免费使用、免费升级无使用时间与功能限制。 ECShop网店系统是一套免费开源的网上商店软件无论在稳定性、代码优化、运行效率、负载能力、安全等级、功能可操控性和权限严密性等方面都居国内外同类产品领先地位。 二、创建yum源 RHEL6.0的安装就不说了这是基本功。 系统刚装好时是无法使用yum命令需要手动创建yum源。方法如下 a. 加载光驱 [rootsqing ~]# mount /dev/cdrom /mnt mount: block device /dev/sr0 is write-protected, mounting read-only [rootsqing ~]# cd /mnt [rootsqing mnt]# ls b. 创建/var/rhel6目录并将光驱内容拷到该目录下 [rootsqing mnt]# mkdir -p /var/rhel6 [rootsqing mnt]# cp -prf /mnt/* /var/rhel6/ c. 在/etc/yum.repos.d下创建local.repo文件编辑其内容为 [rootsqing ~]# cat /etc/yum.repos.d/local.repo [local-Server] baseurlfile:///var/rhel6 enable1 gpgcheck0 至此可以正常使用yum命令了。 三、LAMP环境搭建 通过yum源安装相关软件不需进行特殊配置也省去了源码安装的复杂性。 [rootsqing ~]# yum install –y httpd mysql-server php php-devel php-mysql 将mysqld httpd服务设为开机启动 [rootsqing ~]# chkconfig –add mysqld [rootsqing ~]# chkconfig mysqld on [rootsqing ~]# chkconfig –add httpd [rootsqing ~]# chkconfig httpd on 安装好后使用/usr/sbin/apachectl –t命令进行测试输出为“Syntax OK”表示能正常启动apache了。 [rootsqing ~]# /usr/sbin/apachectl -t httpd: apr_sockaddr_info_get() failed for sqing httpd: Could not reliably determine the servers fully qualified domain name, using 127.0.0.1 for ServerName Syntax OK [rootsqing ~]# service httpd start 有Win7系统上用IE登录RHEL服务器地址http://10.8.110.8可以看到apache羽毛标志表示Apache已成功安装并启用。 要想知道是否已成功启动php模块则进入/var/www/html目录并创建php脚本如下 [rootsqing ~]# cat /var/www/html/phpinfo.php ?php #welcome to sqing phpinfo(); ? phpinfo()是特殊的PHP函数可以显示出目前服务器内PHP模块的相关核心资料。在Win7系统上用IE浏览器浏览http://10.8.110.8/phpinfo.php结果如下 开启mysql服务 [rootsqing ~]# service mysql start 四、ECShop系统部署 首先将/etc/httpd/conf/httpd.conf中关于文件夹的权限由deny from all改为allow from all重启httpd服务。并且确定mysqld服务也已开启。 将项目文件夹放到/var/www/html目录下并安装要求将设置目录及其子目录、文件的属性置为777。 [rootsqing ~]# chmod –R 777 data [rootsqing ~]# chmod –R 777 temp [rootsqing ~]# chmod –R 777 cert [rootsqing ~]# chmod –R 777 includes [rootsqing ~]# chmod –R 777 p_w_picpaths [rootsqing ~]# chmod –R 777 themes 重启动httpd服务在Win7系统上用IE浏览器登录http://10.8.110.8/upload结果如下 在安装过程中有个设置时区的选项默认是“亚洲中国重庆”会安装进程终止不能安装数据库。若将时区设置为“亚洲中国上海”能安装数据但在创建管理员帐号时还是会报错 创建配置文件............成功 创建数据库............成功 安装数据............成功 创建管理员帐号............失败 Warning: date(): It is not safe to rely on the systems timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected Asia/Chongqing for CST/8.0/no DST instead in /var/www/html/upload/includes/lib_time.php on line 28 OK 由于当前RHEL系统采用“Asia/Shanghai”时区的时间将其改为“Asia/Chongqing”也是行不通的需修改源码中\upload\install\includes\lib_installer.php文件在其开始位置添加“date_default_timezone_set (Asia/Shanghai); ”内容如下 ?php date_default_timezone_set (Asia/Shanghai); …… …… ? 成功安装后ECShop系统即可正常运转。 转载于:https://blog.51cto.com/sunshyfangtian/568112