--------------------------------------------在linux上部署apache·php·mysql--------------------------------------------------
1.先安装Centos 5.5 Server GUI版本
2.yum -y update
3.安装vmware tools[根据安装的Vmware版本号安装不同名的压缩包]
cp VMwareTools-8.1.3-203739.tar.gz /tmp
tar zxpf VMwareTools-8.1.3-203739.tar.gz
cd vmware-tools-distrib
./vmware-install.pl
4.在Apache的Web目录下创建index.php文件
vi /var/www/html/index.php
<?php phpinfo();?>
5.安装mysql5.5
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
yum install libmysqlclient15 --enablerepo=webtatic
yum remove mysql mysql-*
yum install libmysqlclient16 --enablerepo=webtatic
yum install mysql55 mysql55-server --enablerepo=webtatic
service mysqld start
mysql_upgrade
6.安装PHP5.3
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
yum --enablerepo=webtatic install php
yum --enablerepo=webtatic update php
1.先安装Centos 5.5 Server GUI版本
2.yum -y update
3.安装vmware tools[根据安装的Vmware版本号安装不同名的压缩包]
cp VMwareTools-8.1.3-203739.tar.gz /tmp
tar zxpf VMwareTools-8.1.3-203739.tar.gz
cd vmware-tools-distrib
./vmware-install.pl
4.在Apache的Web目录下创建index.php文件
vi /var/www/html/index.php
<?php phpinfo();?>
5.安装mysql5.5
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
yum install libmysqlclient15 --enablerepo=webtatic
yum remove mysql mysql-*
yum install libmysqlclient16 --enablerepo=webtatic
yum install mysql55 mysql55-server --enablerepo=webtatic
service mysqld start
mysql_upgrade
6.安装PHP5.3
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
yum --enablerepo=webtatic install php
yum --enablerepo=webtatic update php