You are not logged in.

#1 2021-11-01 12:17:41

itarill
Member
Registered: 2020-06-03
Posts: 60

[SOLVED] pihole web interface PHP error (2): file_exists():

pihole web interface throws me the following error:

There was a problem applying your settings.
Debugging information:
PHP error (2): file_exists(): open_basedir restriction in effect. File(/var/log/apache2/error.log) is not within the allowed path(s): (/srv/http/pihole:/run/pihole-ftl/pihole-FTL.port:/var/log/apache2/error.log:" [...and so on and so on]

Notice that var/log/apache2/error.log is included in the open_basedir. It does not exist, I even tried creating the folder and the file manually.

Last edited by itarill (2021-11-01 13:45:32)

Offline

#2 2021-11-01 12:34:16

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] pihole web interface PHP error (2): file_exists():

The PHP documentation is not very clear, but it looks like you can only specify directories.

Offline

#3 2021-11-01 13:45:20

itarill
Member
Registered: 2020-06-03
Posts: 60

Re: [SOLVED] pihole web interface PHP error (2): file_exists():

You might be right. I changed all the .log, .conf etc. files in the open_basedir to this. I might have misunderstood Arch wiki then, but it is also a little bit ambiguous.
I also had to create /etc/lighttpd folder (even though I use nginx), but the error is gone now.

Thanks!

Offline

Board footer

Powered by FluxBB