logo

Black Friday
Sale

  •  99.9% Uptime
  •  Free Domain Name
  •  24/7 Live Support
  •  30-Days Money-Back Guarantee
Get Started

Up To

90

%

OFF

00
DAYS
18
HOURS
48
MINUTES
39
SECONDS
Black Friday Sale: Best Web Hosting
From ₹45.00 /Month!
See All Deals
×

Hostinger's Knowledge Base

Find articles and information about features, various troubleshooting guides,
and other technical information related to the Hostinger's services

get 'open_basedir restriction in effect, file is not within the allowed path' error

Modified on:
open_basedir error basedir openbasedir allowed path open_basedir restriction in effect file is not within the allowed path

If you get 'open_basedir restriction in effect, file is not within the allowed path' or similar error message, please make sure your script is trying to access files from your home directory (which is /home/yourusername/*).

Keep in mind that you are not allowed to access files from directories outside your account.