Open_basedir restriction blocking file uploads after PHP 8.4 upgrade

Website URL

https://riza.freehosting.dev/

Error Message

is_file(): open_basedir restriction in effect. File(/home/tmp/phpf1mqa5kherm20JBmS9P) is not within the allowed path(s): (/php_sessions:/home/uploads:/tmp:/var/www/errors:/home/vol14_5/infinityfree.com/if0_42887215/htdocs)

Other Information

Other Information:
My site uses Laravel/Filament and file uploads were working fine before. When my account was on PHP 8.3, uploads worked without issues. After InfinityFree upgraded my account to PHP 8.4, file uploads started failing with the error above.

It looks like the server’s temp upload directory for uploaded files is now /home/tmp/, but this path is not included in my account’s open_basedir allowed paths (which currently only include /php_sessions, /home/uploads, /tmp, /var/www/errors, and my htdocs folder).

Since upload_tmp_dir and open_basedir are server-level settings I cannot change myself, could you please check whether /home/tmp needs to be added to the allowed open_basedir paths for my account? This seems to be a server-side configuration issue rather than something in my code, since nothing changed on my end besides the PHP version upgrade.

Account path: /home/vol14_5/infinityfree.com/if0_42887215/htdocs

Thank you for your help!

Yes, this is a server level configuration issue.

This issue isn’t specifically caused by the PHP upgrade itself, but quite a few other modifications were made to harden the server, which did affect file uploads and temporary files.

Both of those work correctly for most websites, but Livewire does something specific that cause it to run into the open_basedir restriction which is preventing the file uploads from working.

I have submitted a request upstream to the server admins to get this checked so they can find a solution for this.