Page 1 of 1

Blank page in phpmyadmin

Posted: Sun Dec 20, 2015 12:28 pm
by Felix
I see a blank page when visiting the url: https://[DOMAIN]/phpmyadmin

This used to work fine until today that I noticed.

Details:
Server: Ubuntu 14.04
VestaCP 0.9.8 R15
[Domain] is using the following themplates:
Web Template: hosting
Proxy Template: hosting

Domain Error Log

Code: Select all

PHP Warning:  is_readable(): open_basedir restriction in effect. File(js/jquery/jquery.cookie.js) is not within the allowed path(s): (/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext) in /usr/share/phpmyadmin/js/get_scripts.js.php on line 31, referer:
open_basedir setting in /etc/apache2/conf.d/phpmyadmin.conf

Code: Select all

php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext
open_basedir setting in /usr/local/vesta/data/templates/web/apache2/hosting.stpl & hosting.tpl

Code: Select all

php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube:/dev/urandom
Location(s) of file jquery.cookie.js

Code: Select all

lrwxrwxrwx 1 root root 54 Dec 12  2013 /usr/share/phpmyadmin/js/jquery/jquery.cookie.js -> ../../../javascript/jquery-cookie/jquery.cookie.min.js

Code: Select all

-rw-r--r-- 1 root root 644 Feb 24  2013 /usr/share/javascript/jquery-cookie/jquery.cookie.min.js
Similar problem to this one, but the topic there is in Russian :-(

If I change open_basedir in /etc/apache2/conf.d/phpmyadmin.conf to the following:

Code: Select all

php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext:/usr/share
it seems to work fine. But I have another server with the same version of VestaCP which works fine, without making this change. Moreover, it used to work fine without needing this change until today.

What is going on?

Re: Blank page in phpmyadmin

Posted: Fri Dec 25, 2015 5:26 pm
by ttcttctw
I had that problem before.
I solve it by set php.ini

Code: Select all

display_errors = off
And another cause might be Google Pagespeed, that will make login screen disappear.

Re: Blank page in phpmyadmin

Posted: Fri Apr 29, 2016 1:23 pm
by skurudo
I have suggestionm, add /usr/share/javascript/ to php_admin_value open_basedir (/etc/apache2/conf.d/phpmyadmin.conf)

Code: Select all

php_admin_value open_basedir /usr/share/phpmyadmin/:/usr/share/javascript/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext
And check rights on folder /var/lib/php/session/