We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
phpMyAdmin warning - open_basedir restriction in effect
-
- Posts: 45
- Joined: Sun Mar 13, 2016 2:21 pm
- Contact:
- Os: Ubuntu 17x
- Web: nginx + php-fpm
phpMyAdmin warning - open_basedir restriction in effect
Hi all!
Ubuntu 15.10 droplet on Digital Ocean. Fresh Vesta CP install (nginx + apache).
PhpMyAdmin displays such warnings. Databases seems to be fine and working.
How to fix this warnings, help plz.
===============================================================================================
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)
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)
===============================================================================================
Screenshot: http://clip2net.com/clip/m88953/f9dca-clip-73kb.png
Ubuntu 15.10 droplet on Digital Ocean. Fresh Vesta CP install (nginx + apache).
PhpMyAdmin displays such warnings. Databases seems to be fine and working.
How to fix this warnings, help plz.
===============================================================================================
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)
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)
===============================================================================================
Screenshot: http://clip2net.com/clip/m88953/f9dca-clip-73kb.png
-
- Posts: 3
- Joined: Fri Apr 15, 2016 5:17 am
Re: phpMyAdmin warning - open_basedir restriction in effect
Did you ever find a fix to this? I'm also having this issue with no luck.
-
- Posts: 139
- Joined: Thu Jan 07, 2016 12:01 am
Re: phpMyAdmin warning - open_basedir restriction in effect
Unfortunately, this has specifically to do with Nginx. This doesn't affect Apache. The only way to solve this is to not use the built in phpmyadmin, but instead use a seperate manual install within the web directory of the domain.
For example, if your hosting:
blah.com
Then the web folder might be something like:
/home/admin/web/blah.com/public_html
That's where it would have to be installed under. Yes, you can install under a subdirectory. ie
phpmyadmin
But because the default is installed outside the specified web folders, it's a security block. Sorry.
For example, if your hosting:
blah.com
Then the web folder might be something like:
/home/admin/web/blah.com/public_html
That's where it would have to be installed under. Yes, you can install under a subdirectory. ie
phpmyadmin
But because the default is installed outside the specified web folders, it's a security block. Sorry.
-
- Posts: 3
- Joined: Fri Apr 15, 2016 5:17 am
Re: phpMyAdmin warning - open_basedir restriction in effect
Hmm. I chose not to install Nginx? How would I go about doing what you've said then?
-
- Posts: 45
- Joined: Sun Mar 13, 2016 2:21 pm
- Contact:
- Os: Ubuntu 17x
- Web: nginx + php-fpm
Re: phpMyAdmin warning - open_basedir restriction in effect
No, i didnt find how to fix it.jacobmcilravey wrote:Did you ever find a fix to this? I'm also having this issue with no luck.
MySQL db work normaly.
Login to database also works normaly.
Inside PhpMyAdmin also much warnings. Something about configuration of PhpMyAdmin. Screen: http://clip2net.com/s/3wY3R1S
screen imageShow
Just warring about security of this issue.
Re: phpMyAdmin warning - open_basedir restriction in effect
After install phpmyadmin incomplete. And we made fix for this:Vladimir Chanaev wrote: Inside PhpMyAdmin also much warnings. Something about configuration of PhpMyAdmin. Screen: http://clip2net.com/s/3wY3R1S
viewtopic.php?f=14&t=10307
-
- Posts: 3
- Joined: Fri Apr 15, 2016 5:17 am
Re: phpMyAdmin warning - open_basedir restriction in effect
Didn't work on both servers I tried. The script doesn't work, and I'm still getting errors. Any other fix you can offer?
Re: phpMyAdmin warning - open_basedir restriction in effect
PM me server details (root login/pass), let's see what's going on.jacobmcilravey wrote:Didn't work on both servers I tried. The script doesn't work, and I'm still getting errors. Any other fix you can offer?
-
- Posts: 6
- Joined: Tue May 24, 2016 3:31 pm
Re: phpMyAdmin warning - open_basedir restriction in effect
have done fresh install on ubuntu 15 lts and did everything as root (not sudo), got the error, I did then run the script, all showed OK in the script log, rebooted server, and phpmyadmin still shows:
UPDATE:
Fixed with this:
Find this line:
Add /usr/share/doc to it, so it looks like this:
Save and do "service apache2 restart"
Solved :-)
Code: Select all
file_exists(): open_basedir restriction in effect. File(doc/html/index.html)
Fixed with this:
Code: Select all
nano /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
Code: Select all
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext:/usr/share/doc
Solved :-)
Re: phpMyAdmin warning - open_basedir restriction in effect
Nice one, twister5800!