phpMyAdmin 配置不适用于 Centos 6.5 [英] phpMyAdmin config not working on Centos 6.5

查看:58
本文介绍了phpMyAdmin 配置不适用于 Centos 6.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近使用 yum 安装了 phpMyAdmin:

Recently installed phpMyAdmin using yum:

yum install phpmyadmin

phpmyadmin 已安装到

phpmyadmin was installed to

/usr/share/phpMyAdmin/ 

但是那里没有配置文件.

but there is no config file there.

/etc/phpMyAdmin/config.inc.php

如 phpMyAdmin 文档所示(http://docs.phpmyadmin.net/en/latest/setup.html#linux-distributions - 阅读有关 Red Hat Enterprise Linux 的一些内容)

as the phpMyAdmin docs indicate (http://docs.phpmyadmin.net/en/latest/setup.html#linux-distributions - read bit about Red Hat Enterprise Linux)

但是,phpMyAdmin 应用程序不会获取对该文件的更改.我试过把它的副本放在不同的地方:

However, changes to that file are not picked up by the phpMyAdmin application. I've tried putting a copy of that in various locations:

/etc/phpMyAdmin/config/config.inc.php
/usr/share/phpMyAdmin/config.inc.php
/usr/share/phpMyAdmin/config/config.inc.php

没有成功.这些文件都没有用作配置,它们都具有正确的权限 (a+rwx),它们的父目录也是如此.

without success. None of these files are used as config, and they all had the correct permissions (a+rwx), as did their parent directories.

有谁知道为什么这不起作用?命名文件config.inc.php 是正确的,对吗?

Does anyone know why this doesn't work? Naming the file config.inc.php is correct, right?

推荐答案

phpMyAdmin 无法读取配置文件并使用默认配置.

phpMyAdmin can't read config file and using default config.

我已经通过将 chmod 644 设置为这个文件解决了这个问题:

I've solved this issue by setting chmod 644 to this file:

/etc/phpMyAdmin/config.inc.php

/etc/phpMyAdmin/config.inc.php

chmod 755 到这个文件夹:

And chmod 755 to this folder:

/etc/phpMyAdmin/

/etc/phpMyAdmin/

检查文件和文件夹目录是否可由您运行网络服务器的用户读取.

Check file and folder directories are readable by user that you're running web server also.

祝你好运.

这篇关于phpMyAdmin 配置不适用于 Centos 6.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆