gpt4 book ai didi

linux - phpmyadmin, neginx error.log - 检查组 www-data 有读取权限和 open_basedir

转载 作者:太空狗 更新时间:2023-10-29 11:19:12 27 4
gpt4 key购买 nike

我在 phpmyadmin 网站上有这条消息

The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. To find out why click here.

在“点击这里”页面上我有这个: Page printscreen

我的 nginx 错误是:

    2014/06/27 15:08:15 [error] 4922#0: *886 FastCGI sent in stderr: "PHP message: phpmyadmin: Failed to load /var/lib/phpmyadmin/blowfish_secret.inc.php Check group www-data has read access and open_basedir restrictions.
PHP message: phpmyadmin: Failed to load /var/lib/phpmyadmin/config.inc.php Check group www-data has read access and open_basedir restrictions.2014/06/27 15:17:07 [error] 5119#0: *939 FastCGI sent in stderr: "PHP message: phpmyadmin: Failed to load /var/lib/phpmyadmin/blowfish_secret.inc.php Check group www-data has read access and open_basedir restrictions.
PHP message: phpmyadmin: Failed to load /var/lib/phpmyadmin/config.inc.php Check group www-data has read access and open_basedir restrictions" while reading response header from upstream, client: 1***, server: _, request: "GET /phpmyadmin/js/messages.php?lang=en&db=&token=**** HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/ispconfig.sock:", host: "****:8080", referrer: "https://****:8080/phpmyadmin/chk_rel.php?db=&table=&server=1&target=&token=****"

我使用此 cmd 授予他们对所有 3 个文件的权限:

chgrp www-data  /var/lib/phpmyadmin/blowfish_secret.inc.php
chmod 644 /var/lib/phpmyadmin/blowfish_secret.inc.php

如何修复 open_basedir 限制?

我查过谷歌但没有找到任何东西。请给我一些帮助或提示如何修复它。谢谢!

Ubuntu 版本:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"

最佳答案

这是我的配置:

drwxr-xr-x 3 root root 4096 feb 14 10:05 phpmyadmin/

那是文件夹。对于这两个文件:

-rw-r-----  1 root     www-data   60 feb 14 10:05 blowfish_secret.inc.php
-rw-r----- 1 root www-data 0 feb 14 10:05 config.inc.php

希望这会有所帮助。还要检查 php5-mcrypt 扩展名。如果它不能正常工作,请使用

sudo php5enmod mcrypt

安装它,然后重启 ngnix。这是命令:

chmod 755 /var/lib/phpmyadmin
chmod 664 /var/lib/blowfish_secret.inc.php
chmod 664 /var/lib/config.inc.php

这些命令应该有效。 :)

关于linux - phpmyadmin, neginx error.log - 检查组 www-data 有读取权限和 open_basedir,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24452677/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com