What shared hosting control panel are you using?
You would need to modify the php.ini or httpd.conf to allow the directory, if your control panel allows that.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi! i'm using laravel 5.7 in shared hosting and got this error :
RecursiveDirectoryIterator::hasChildren(): open_basedir restriction in effect. File(/home/abzarako/access-logs) is not within the allowed path(s): (/home/abzarako:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp)
tnx for helping
Please or to participate in this conversation.