Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

seydmeti's avatar

access-logs) is not within the allowed path(s)

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

0 likes
3 replies
TerrePorter's avatar

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.

TerrePorter's avatar

Ok, should be able to modify the php.ini here, Software > Select PHP Version > Switch to Php Options > Change Value

Then find/add your path to a setting called open_basedir

Please or to participate in this conversation.