Limited Time Offer - from ₱35.00/month
00
DAYS
16
HOURS
11
MINUTES
55
SECONDS
Get Started
×

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.

  • Easy Website Builder
  • 99.9% Uptime Guarantee
  • 24/7 Live Support
  • Powerful Control Panel
  • 30-Days Money-Back Guarantee
Limited Time Special Offer!
From
35
00
/mo
Save 90%
Get started