OpenCart Installation Blocked by open_basedir Restriction

Website URL

https://habibshop.xo.je

Error Message

Warning: open_basedir needs to allow access to /home/vol1_6/infinityfree.com/if0_43365279/

Current open_basedir:
/php_sessions:/home/uploads:/home/tmp:/var/www/errors:/home/vol1_6/infinityfree.com/if0_43365279/htdocs

Required:
/home/vol1_6/infinityfree.com/if0_43365279/

Other Information

I am using InfinityFree free hosting and trying to install OpenCart.

My PHP version is 8.4.27. All required PHP extensions are enabled, and both config.php files are writable.

The only remaining issue is the open_basedir restriction.

Please let me know if this can be fixed on free hosting or if there is another solution.

Thank you.

Welcome to the InfinityFree community forum! Good to have you here.

  • Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
  • Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
  • AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
  • Solving an issue is a joint effort. Try the suggestions you get and report back what happened.

Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.

Short answer: on our hosting, PHP code can’t access files outside the htdocs directory of the website it runs on, so I don’t think the open_basedir setting can be changed. The OpenCart guide says that’s why OpenCart’s data directory has to sit inside htdocs, for example htdocs/ocartdata instead of the default ocartdata.

Here’s the guide:

It’s written for the Softaculous installer. Your warning wants access to the folder above htdocs, so it looks like the installer is trying to use a storage or data location outside htdocs. A solved topic with a similar manual-install warning had the same cause, a data path outside htdocs:

Are you installing manually or through Softaculous? And what storage or data directory path is the installer, or the config.php it wrote, currently set to? If that path isn’t inside htdocs, that would explain the warning.

I am installing OpenCart manually by uploading and extracting the ZIP files through the InfinityFree File Manager. I am not using Softaculous.