RedHat下如何搭建ecshop?

1、关闭防火墙 输入命令:

chkconfig iptables off

2、虚拟机设置


RedHat下如何搭建ecshop?_第1张图片
image.png

RedHat下如何搭建ecshop?_第2张图片
图片.png

3、创建文件夹

mkdir /mnt/cdrom

4、加载LINUX安装光盘

mount /dev/cdrom /mnt/cdrom

5、进入安装程序目录

cd /mnt/cdrom/Server

6、安装apache 服务器

rpm -ivh postgresql-libs-8.1.11-1.el5_1.1.i386.rpm
rpm -ivh apr-1.2.7-11.el5_3.1.i386.rpm
rpm -ivh apr-util-1.2.7-7.el5_3.2.i386.rpm
rpm -ivh httpd-2.2.3-31.el5.i386.rpm

7、立即生效执行

service httpd start

浏览http://虚拟机本机IP 成功出现默认页面

8、安装MYSQL

rpm -ivh perl-DBI-1.52-2.el5.i386.rpm
rpm -ivh mysql-5.0.77-3.el5.i386.rpm
rpm -ivh perl-DBD-MySQL-3.0007-2.el5.i386.rpm
rpm -ivh mysql-server-5.0.77-3.el5.i386.rpm

9、立即生效执行

service mysqld start

10、安装PHP

rpm -ivh php-common-5.1.6-23.2.el5_3.i386.rpm
rpm -ivh gmp-4.1.4-10.el5.i386.rpm
rpm -ivh php-cli-5.1.6-23.2.el5_3.i386.rpm
rpm -ivh php-5.1.6-23.2.el5_3.i386.rpm  
rpm -ivh php-mbstring-5.1.6-23.2.el5_3.i386.rpm

12、修改PHP对Apache的支持

vi /etc/httpd/conf/httpd.conf
:800
i

用终端直接粘贴以下内容

AddType application/x-httpd-php .php .php3 .phtml .inc
AddType application/x-httpd-php-source .phps

13、保存退出

:wq

14、立即生效执行

service httpd restart

15、将ECSHOP文件夹中的upload.zip文件拷入/var/www/html中

cd /var/www/html
unzip upload.zip
mv upload/ ecshop
chmod -R 777 ecshop

16、进入目录安装相应的gd库和mysql的支持:

cd /mnt/cdrom/Server/
rpm -ivh php-common-5.1.6-23.2.el5_3.i386.rpm
rpm -ivh php-pdo-5.1.6-23.2.el5_3.i386.rpm 
rpm -ivh php-pdo-5.1.6-23.2.el5_3.i386.rpm
rpm -ivh php-mysql-5.1.6-23.2.el5_3.i386.rpm
rpm -ivh php-gd-5.1.6-23.2.el5_3.i386.rpm
service httpd restart

17、浏览http://本机IP/ecshop 即可进行安装


RedHat下如何搭建ecshop?_第3张图片
image.png

18、安装小海豚


动态查看ecshop用户的操作日志:
tail -f /var/log/httpd/access_log

你可能感兴趣的:(RedHat下如何搭建ecshop?)