Page 1 of 1

phpmyadmin error on fresh install

Posted: Tue Nov 24, 2015 1:45 am
by Mooticus
Getting the following error on a fresh install of Ubuntu 15.10.

Please help... Checking the kernal logs, i have the following apparmor log:

Nov 24 11:17:38 server2 kernel: [ 16.584111] audit: type=1400 audit(1448327858.597:11): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/usr/my.cnf" pid=1226 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=108 ouid=0


-------------------------------------------------------------------------------------
phpmyadmin error:


Warning in ./libraries/Util.class.php#516
file_exists(): open_basedir restriction in effect. File(doc/html/index.html) is not within the allowed path(s): (/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext:/usr/share/javascript/)

Backtrace

./libraries/Util.class.php#516: file_exists(string 'doc/html/index.html')
./libraries/Util.class.php#540: PMA_Util::getDocuLink(
string 'index',
string '',
)
./libraries/plugins/auth/AuthenticationCookie.class.php#171: PMA_Util::showDocu(string 'index')
./libraries/common.inc.php#872: AuthenticationCookie->auth()
./index.php#12: require_once(./libraries/common.inc.php)

Re: phpmyadmin error on fresh install

Posted: Wed Nov 25, 2015 11:36 pm
by Snaker
I have the same error. Fresh install on Ubuntu 15.10.
Also after login to phpmyadmin I have more errors:

Code: Select all

The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. Find out why. Or alternately go to 'Operations' tab of any database to set it up there.

Connection for controluser as defined in your configuration failed.

Warning in ./libraries/Util.class.php#516
 file_exists(): open_basedir restriction in effect. File(doc/html/index.html) is not within the allowed path(s): (/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext)

Re: phpmyadmin error on fresh install

Posted: Mon Nov 30, 2015 11:46 am
by haary
I have the same issue. Running VestaCP Version 0.9.8 (i386) Release 15 on Debian 8 32 bit.
Error messages in phpmyadmin are:
  • The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated.
  • Connection for controluser as defined in your configuration failed.

Re: phpmyadmin error on fresh install

Posted: Mon Nov 30, 2015 3:58 pm
by Fortron
haary wrote:I have the same issue. Running VestaCP Version 0.9.8 (i386) Release 15 on Debian 8 32 bit.
Error messages in phpmyadmin are:
  • The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated.
  • Connection for controluser as defined in your configuration failed.
Follow the steps from here, it solved it for me:
viewtopic.php?t=9724

Re: phpmyadmin error on fresh install

Posted: Fri Jan 15, 2016 8:16 pm
by skurudo
Autofix for functions and controluser:
viewtopic.php?f=14&t=10307