phpmyadmin,neginx error.log-检查组www-data具有读取访问权限和open_basedir [英] phpmyadmin, neginx error.log - Check group www-data has read access and open_basedir
问题描述
我在phpmyadmin网站上有此消息
I have this message on phpmyadmin website
phpMyAdmin配置存储未完全配置,某些扩展功能已被停用.要找出原因,请单击此处.
The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. To find out why click here.
在单击此处"页面上,我有以下内容: 页面打印屏幕
On the 'click here' page I have this: Page printscreen
我的nginx错误是:
My nginx error are:
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个文件的权限:
I give them permissions with this cmd for all 3 files:
chgrp www-data /var/lib/phpmyadmin/blowfish_secret.inc.php
chmod 644 /var/lib/phpmyadmin/blowfish_secret.inc.php
如何解决open_basedir限制?
How to fix the open_basedir restrictions?
我检查了Google,但没有找到任何东西.请给我一些帮助或提示,以解决它.谢谢!
I checked Google but didn't find anything. Please give me some help or tips how to fix it. Thank you!
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/
用于文件夹.对于这两个文件:
that's for folder. And for those two files:
-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扩展名.如果无法正常使用,请使用
Hope this will help. Also check for php5-mcrypt extension. If it's not working properly, use
sudo php5enmod mcrypt
进行安装,然后重新启动ngnix.这是命令:
to install it, and then just restart ngnix. here are commands:
chmod 755 /var/lib/phpmyadmin
chmod 664 /var/lib/blowfish_secret.inc.php
chmod 664 /var/lib/config.inc.php
这些命令应该起作用. :)
those commands should work. :)
这篇关于phpmyadmin,neginx error.log-检查组www-data具有读取访问权限和open_basedir的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!