logo

Black Friday
Sale

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

Up To

90

%

OFF

05
DAYS
14
HOURS
33
MINUTES
58
SECONDS
Black Friday Sale: Cheap Web Hosting
From ₱35.00 /Month!
See All Deals
×

Knowledge base

Find information and articles about features, guides for troubleshooting,
and other useful information related to Hostinger's web hosting 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.