Knowledge base

Find articles about information features, troubleshooting guides, and other technical information related to the hosting service Hostinger.

access_time
Monday, June 12, 2017
get 'open_basedir restriction in effect, file is not within the allowed path' error

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.

open_basedirerror basediropenbasedirallowed pathopen_basedir restriction in effect file is not within the allowed path