1

I'm trying to reinstall my server and have run into a new problem that I can't seem to figure out.

I'm running a LAMP setup and host a few sites for my friends, for that I have open_basedir set in their Apache conf files but that suddenly affect phpMyAdmin (Warning: Unknown: open_basedir restriction in effect. File(/usr/share/phpmyadmin/index.php) is not within the allowed path)

It works fine if I remove the open_basedir from the virtual host.

What really confuses me is that this has never been an issue in any of my previous setups, has something changed or am I doing something wrong this time?

Apache2.4.18
php 7.0.4
phpMyAdmin 4.5.4.1

ibennetch
  • 355
Zlug
  • 111
  • 3

1 Answers1

0

Turns out the problem was that phpMyAdmin wasn't set up to php7 So all I had to do was change

<IfModule mod_php.c>

to

<IfModule mod_php7.c>

in /etc/phpmyadmin/apache.conf

Zlug
  • 111
  • 3