1、环境介绍
os:oracle centos 5.9
apache:httpd-2.2.3-74.0.1.el5
php:php53-5.3.3-13.el5_8
mysql:mysql-server-5.0.95-3.el5
2、安装过程
# yum install -y httpd
# service httpd start
# yum install -y mysql-server
# service mysqld start
# yum install -y php53
# yum -y install php53-mysql
3、环境验证
<?php
phpinfo();
?>
<?php
$conn=mysql_connect('localhost','root','');
if($conn)
echo "sucess";
else
echo "false";
?>
4、部署PHP程序
#cp phpMyAdmin-3.4.3.2-all-languages.tar.bz2 /var/www/html
#tar jxvf phpMyAdmin-3.4.3.2-all-languages.tar.bz2
#mv phpMyAdmin-3.4.3.2-all-languages.tar.bz2 phpadmin