<b>在CentOS 6.0 上安装LAMP服务器( Apache2 + PHP5 + MySQL)</b>[服务器安全]
本文“<b>在CentOS 6.0 上安装LAMP服务器( Apache2 + PHP5 + MySQL)</b>[服务器安全]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:
7.安装phpMyAdmin管理数据库
phpMyAdmin是一个Web界面,通过它可以管理你的MySQL数据库.
首先,我们使我们的CentOS 系统的RPMForge软件库phpMyAdmin是不是官方的CentOS 6.0库:
导入rpmforge的GPG密钥:
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
|
x86_64 系统安装号令:
yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
i386 系统安装号令:
yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
目前可以安装phpMyAdmin以下:
yum install phpmyadmin
目前,我们配置phpMyAdmin.改变Apache的配置,使phpMyAdmin衔接,而不但仅是从localhost(注释掉答应) :
vi /etc/httpd/conf.d/phpmyadmin.conf
#
# Web application to manage MySQL
##
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
下一步,我们改变在phpMyAdmin的身份考证 cookie ,HTTP:
vi /usr/share/phpmyadmin/config.inc.php
[...]
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = ‘http’;
[...]
重新启动Apache:
/etc/init.d/httpd restart
之后,您可以按照拜候phpMyAdmin http://192.168.0.100/phpmyadmin/管理数据库:
8.相关链接
Apache: http://httpd.apache.org/
PHP: http://www.php.net
MySQL: http://www.mysql.com/
CentOS: http://www.centos.org/
phpMyAdmin: http://www.phpmyadmin.net/
CentOS 6.0才公布不久,目前我们来共同学习一下如安在CentOS 6.0上安装 Apache2 + PHP5 + MySQL的web服务器.
1.重要提醒:
在本教程中利用的主机名为www.linuxidc.com,IP 地址为 192.168.0.100 .这些设置会与具体安装的设置有所差别,所以你必须在你的安装历程中举行替换.
2.安装MySQL 5.0
翻开终端,输入:
yum install mysql mysql-server
然后为MySQL成立系统启动链接(这样在系统启动时,MySQL会自动启动),在终端输入号令:
chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start
为MySQL root帐户设置密码:
mysql_secure_installation
终端显示,按照提醒操作:
[root@www.linuxidc.com ~]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we’ll need the current
password for the root user. If you’ve just installed MySQL, and
you haven’t set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on…
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.
Set root password? [Y/n] <– 回车
New password: <– 设置一个用户密
以上是“<b>在CentOS 6.0 上安装LAMP服务器( Apache2 + PHP5 + MySQL)</b>[服务器安全]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
本文地址: | 与您的QQ/BBS好友分享! |