new-linux下搭建 ecshop
1、关闭防火墙 输入命令:chkconfig iptables off
2、设置好eth0(默认网卡)IP,
立即生效请执行 service network restart
虚拟机窗口右下角两个电脑的小图标,点击选择settings→勾选connected,connect at power on,Bridged...,Replicate ..→OK(cd/RCD、桥接都连接)
3、mkdir /mnt/cdrom 加载LINUX安装光盘 mount /dev/cdrom /mnt/cdrom
4、进入安装程序目录 cd /mnt/cdrom/Server
5、安装apache 服务器 rpm -ivh 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
立即生效执行 service httpd start
在浏览器中输入 http://linux服务器的IP 成功出现apache的首页,表示apache安装成功
6、安装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
立即生效执行 service mysqld start
7、安装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
默认APACHE不支持PHP,需要修改配置文件才能支持,注意依赖关系 vi /etc/httpd/conf/httpd.conf
在800行左右加入如下行:(在vi命令模式下执行 :800)
用终端直接C-V以下内容
AddType application/x-httpd-php .php .php3 .phtml .inc
AddType application/x-httpd-php-source .phps
保存退出(:wq)
立即生效执行 service httpd restart **********************************************************************
8、将ECSHOP文件夹中的upload.zip文件拷入/var/www/html中
cd /var/www/html
unzip upload.zip(解压upload文件)
mv upload/ ecshop,并重命名为ecshop
赋予ecshop全员全部权限 chmod -R 777 ecshop
9、进入目录安装相应的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
11、浏览http://本机IP/ecshop 即可进行安装
12、安装小海豚 ****************** 动态查看ecshop用户的操作日志: tail -f /var/log/httpd/access_log