用yum安装Apache,Mysql,PHP.
	 
		2.1安装Apache
	 
		yum install httpd httpd-devel
	 
		安装完成后,用/etc/init.d/httpd start 启动apache
	 
		设为开机启动:chkconfig httpd on
	 
		2.2 安装mysql
	 
		2.2.1 yum install mysql mysql-server mysql-devel
	 
		同样,完成后,用/etc/init.d/mysqld start 启动mysql
	 
		2.2.2 设置mysql密码
	 
		启动mysql控制台:  mysql
	 
		mysql>; USE mysql;
	 
		mysql>; UPDATE user SET Password=PASSWORD('newpassword') WHERE user='root';
	 
		mysql>; FLUSH PRIVILEGES;
	 
		2.2.3 允许远程登录
	 
		mysql -u root -p
	 
		Enter Password: <your new password>
	 
		mysql>GRANT ALL PRIVILEGES ON *.* TO '用户名'@'%' IDENTIFIED BY '密码' WITH GRANT OPTION;
	 
		完成后就能用mysql-front远程管理mysql了。
	 
		2.2.4 设为开机启动
	 
		chkconfig mysqld on
	 
		3. 安装php
	 
		yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml
	 
		/etc/init.d/httpd start
	 
		 
		 
		/升级默认的php5.1到5.2
	 
		 
		vi gedit /etc/yum.repos.d/utterramblings.repo
	 
		在打开的文件中加入以下内容:
	 
		[utterramblings]
	 
		name=Jason’s Utter Ramblings Repo
	 
		baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
	 
		enabled=1
	 
		gpgcheck=1
	 
		gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
	 
		保存
	 
		yum update php
	
	
	
	
	

 
 