CentOS下yum安装LAMP
yum install httpd httpd-devel -yyum install mysql mysql-server mysql-devel -y
yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml -y
/etc/rc.d/init.d/mysqld start
/etc/init.d/httpd start
登陆mysql
mysql -uroot -p
USE mysql;
UPDATE user SET Password=PASSWORD('newpassword');
在/var/www/html下建立php测试页面index.php
<?php
phpinfo();
?>
打开测试页面
http://10.1.1.1/index.php
页:
[1]