欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

centos 64 位安装phpmyadmin

程序员文章站 2022-05-31 11:38:02
...
1. 安装:apache
sudo yum install httpd

2.apache 端口修改 为了避免和nginx 端口冲突 修改apache 端口 为8080

vi /etc/httpd/httd.conf
将 Listen 80 =》Listen 8080

sudo /etc/init.d/httpd start
测试是否启动
eg: www.XXXXX.com:8080



3.phpmyadmin 64位安装
 sudo rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt  
sudo yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
sudo yum install phpmyadmin

4 .编辑phpmyadmin 配置文件,确使其能链接到本地数据库

vi /etc/phpmyadmin/config.inc.php
<?php
$cfg['blowfish_secret'] = 'dbentpwd!'; // 输入本地数据库密码

$i=0;
$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
?>



5. 改变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

6.测试:sudo /etc/init.d/httpd restart
  url: www.XXXXX.com:8080
username:root
password:*****
相关标签: phpmyadmin centos