免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 23828 | 回复: 16
打印 上一主题 下一主题

[FreeBSD] [问题已解决]安装完phpmyadmin 用浏览器不能访问出错。。好心人帮我看看吧 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-28 20:34 |只看该作者 |倒序浏览
出现这个错误;Wrong permissions on configuration file, should not be world writable!
真不知道怎么回事,搞了一天还没弄好.到底哪里出问题了呀.

下面是我的安装方法:
七、phpMyAdmin的安装
1、
cd /usr/ports/databases/phpmyadmin
make install clean
2、
把安装后的phpMyAdmin目录放到apache定义的主目录
3、
进入phpMyAdmin目录
cp ./libraries/config.default.php  复制到phpMyAdmin目录

修改 config.inc.php,第39行:
$cfg['PmaAbsoluteUri'] = '';
改为:
$cfg['PmaAbsoluteUri'] = 'http://172.16.51.1/phpMyAdmin/';

$cfg['Servers'][$i]['auth_type'] = 'config';
改为:
$cfg['Servers'][$i]['auth_type'] = 'http';
4、
编辑/usr/local/etc/apache2/httpd.conf
修改如下内容:
DirectoryIndex 指定预设网页档名
当使用者使用网址「http://www.example.com/dir」连到一个目录中时,如果没有指定网页,Apache 会去查找 DirectoryIndex 中所设定的网页在不在,如果存在则秀出预设的网页。
预设的网页只有二个,我们可以再加上 index.htm、index.php 等常用的网页:
DirectoryIndex index.php index.htm index.html index.html.var

在浏览器上输入http://本机ip/phpMyAdmin/


注:phpMyAdmin2.8系列的使用方法和以前不同了,程序中没有config.inc.php。
有两种安装方法:
1、将./libraries/config.default.php 复制到phpMyAdmin根目录并重命名为config.inc.php,之后按照以前的方法对该文件进行编辑配置即可;
2、在浏览器中运行http://..../phpMyAdmin/scripts/setup.php 以向导模式进行安装(类似Discuz!的安装过程)。
详细的安装帮助参见phpMyAdmin根目录中的Documentation.html文件。

[ 本帖最后由 矛盾无奈 于 2006-7-28 22:26 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-07-28 21:18 |只看该作者
好心疼.没人帮.是我的问题太白痴?

论坛徽章:
2
IT运维版块每日发帖之星
日期:2015-10-05 06:20:00操作系统版块每日发帖之星
日期:2015-10-05 06:20:00
3 [报告]
发表于 2006-07-28 21:34 |只看该作者
Wrong permissions on configuration file, should not be world writable
错误的(操作?)配置文件权限,不能写?world writeable不知道怎么翻译好

论坛徽章:
0
4 [报告]
发表于 2006-07-28 21:37 |只看该作者
老大你要救我啊.我把它整个目录都改成777 还是出现这个权限问题.郁闷阿

论坛徽章:
0
5 [报告]
发表于 2006-07-28 21:55 |只看该作者
直接下载PHPMYADMIN2.8后解压放到你的网站目录,修改config.default.php,这样试试~~~

$cfg['Servers'][$i]['auth_type']     = 'http';    // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = 'root';      // MySQL user
$cfg['Servers'][$i]['password']      = '你的mysql密码';          // MySQL password (only needed
                                                                                               // with 'config' auth_type)

[ 本帖最后由 江南人 于 2006-7-28 22:10 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2006-07-28 21:57 |只看该作者
cp ./libraries/config.default.php  复制到phpMyAdmin目录

修改 config.inc.php,第39行:
$cfg['PmaAbsoluteUri'] = '';
改为:
$cfg['PmaAbsoluteUri'] = 'http://172.16.51.1/phpMyAdmin/';

$cfg['Servers'][$i]['auth_type'] = 'config';
改为:
$cfg['Servers'][$i]['auth_type'] = 'http';
4、
编辑/usr/local/etc/apache2/httpd.conf


cp WHY??
修改的应该是./libraries/config.default.php而不是config.inc.php

论坛徽章:
0
7 [报告]
发表于 2006-07-28 22:04 |只看该作者
我试试直接下载的方法

论坛徽章:
0
8 [报告]
发表于 2006-07-28 22:24 |只看该作者
晕,问题出在ports下载来的phpmyadmin.
大家还是用其他方法安装,不要用PORTS.

论坛徽章:
0
9 [报告]
发表于 2006-07-28 22:39 |只看该作者
我用PORTS也可以呀~~~

论坛徽章:
0
10 [报告]
发表于 2006-07-29 12:51 |只看该作者
那就奇怪了,
最后我是从网上直接下载下来,FTP传上去修改一下就OK了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP