Error with external storage

A have nextcloud on arch linux, after shifted back to php-legacy (<8.2) I foud that external storage does not work. If I am right I should add my path to allowed path. Can you help me to figure out where I can find this settings to add my external path?

Error PHP
Error: realpath(): open_basedir restriction in effect. File(/mnt/edu) is not within the allowed path(s): (/var/lib/nextcloud:/tmp:/usr/share/webapps/nextcloud:/etc/webapps/nextcloud:/dev/urandom:/usr/lib/php-legacy/modules:/var/log/nextcloud:/proc/meminfo) at /usr/share/webapps/nextcloud/lib/private/Files/Storage/Local.php#84

Hi referi,

You should look in your php.ini for the open_basedir directive

Unset it like this:

open_basedir =

or comment the line out like this:

;open_basedir =

Restart your php-fpm (or webserver), you should now have access to your external storage.

Sorry for being late in my response.
I have checked my php.ini files and found open_basedir commented there
/etc/webapps/nextcloud/php.ini
/etc/php-legacy/php.ini
Do you have any other thoughts?

I am not an Arch specialist but acording to this wiki, you should deal it in /etc/webapps/nextcloud/php.ini for the comandline (occ) and in /etc/php-legacy/php.ini for the rest.
But you could look for open_basedir in /etc/php-legacy/php-fpm.ini, /etc/php-legacy/php-fpm.d/nextcloud.conf (if exists) and /etc/uwsgi/nextcloud.ini as well.
But as I wrote, I am not an Arch specialist.

1 Like

ernolf thank you for your help! really found it here
/etc/php-legacy/php-fpm.d/nextcloud.conf