[Eisfair] open_basedir restriction im Zusammenhang mit phpmyadmin

Christian Richter christian at richter-ch.de
Do Jan 5 18:13:21 CET 2023


Hallo zusammen,

ich hätte da mal wieder gerne ein Problem :)

Und zwar:
Ich habe Nextcloud installiert und in der Apache Config als Vhost 
eingetragen. Soweit so gut, wenn ich aber auch noch das phpmyadmin100 
Paket installiere verweigert mir die Nextcloud den Dienst. Und auch die 
anderen Vhosts. phpmyadmin funktioniert dagegen bestens.

Im apache error-log der nextcloud kommt dann immer wieder diese 
Fehlermeldung:

[Thu Jan 05 15:21:40.870298 2023] [proxy_fcgi:error] [pid 1224:tid 
139903442605632] [client 92.116.10.202:53276] AH01071: Got error 'PHP 
message: PHP Warning:  file_exists(): open_basedir restriction in 
effect. File(/var/www/htdocs/nextcloud/config/config.php) is not within 
the allowed path(s): 
(/srv/www/phpmyadmin100/phpMyAdmin:/var/cache/phpMyAdmin:/var/lib/php8:/srv/www/phpmyadmin100/tmp:/tmp:/usr/share/doc/phpmyadmin100:/etc/phpMyAdmin:/proc/meminfo:/proc/stat) 
in /var/www/htdocs/nextcloud/lib/private/Config.php on line 218PHP 
message: PHP Warning:  realpath(): open_basedir restriction in effect. 
File(/var/www/htdocs/nextcloud/index.php) is not within the allowed 
path(s): 
(/srv/www/phpmyadmin100/phpMyAdmin:/var/cache/phpMyAdmin:/var/lib/php8:/srv/www/phpmyadmin100/tmp:/tmp:/usr/share/doc/phpmyadmin100:/etc/phpMyAdmin:/proc/meminfo:/proc/stat) 
in /var/www/htdocs/nextcloud/lib/base.php on line 153PHP message: PHP 
Warning:  file_exists(): open_basedir restriction in effect. 
File(/var/www/htdocs/nextcloud/apps) is not within the allowed path(s): 
(/srv/www/phpmyadmin100/phpMyAdmin:/var/cache/phpMyAdmin:/var/lib/php8:/srv/www/phpmyadmin100/tmp:/tmp:/usr/share/doc/phpmyadmin100:/etc/phpMyAdmin:/proc/meminfo:/proc/stat) 
in /var/www/htdocs/nextcloud/lib/base.php on line 218'

Ähnliches natürlich auch in den errorlogs der anderen Vhosts

Also irgendeine open_basedir restriction vom phpmyadmin.

Aber wieso spielt hier phpmyadmin mit rein und viel wichtiger wie 
bekomme ich vernünftig beides zum laufen?

Durch irgendeinen Quick & Dity Hack habe ich das schon einmal behoben 
aber ich weiß leider nicht mehr wie und updatefest war das ja eh auch 
nicht :)


Viele Grüße
Christian


Mehr Informationen über die Mailingliste Eisfair