My CentOS 6.5 默认安装LAMP(Apache+MySQL+PHP)安装步骤
CentOS 6.5 默认安装xcacheLAMP(Apache+MySQL+PHP)安装步骤
PHP:5.3.2
Apache:2.2.15
MySQL:5.1.52
[root@localhost ~]# yum install mysql mysql-server
[root@localhost ~]# chkconfig --levels 235 mysqld on [root@localhost ~]# /etc/init.d/mysqld start
[root@localhost ~]# mysql_secure_installation
Enter current password for root
Set root password?[Y/n]
New password:
Remove anonymous users?[Y/n] Disallow root login remotely?[Y/n] Remove test database and access to it?[Y/n] Reload privilege tables now?[Y/n]
[root@localhost ~]# yum install httpd
[root@localhost ~]# chkconfig --levels 235 httpd on
[root@localhost ~]# /etc/init.d/httpd start
[root@localhost ~]# yum install php
[root@localhost ~]# /etc/init.d/httpd restart
[root@localhost ~]# vi /var/www/html/info.php
<?php phpinfo();?>
:wq
[root@localhost ~]# yum search php
[root@localhost ~]# yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc
[root@localhost ~]# /etc/init.d/httpd restart
本文由瞎悟学习网作者:hiovo 发表,其版权均为本站所有,文章内容系作者个人观点瞎悟学习,不代表对观点赞同或支持。如需转载,请注明文章来源。