# OpenCart Installation Blocked by open\_basedir Restriction

**URL:** <https://forum.infinityfree.com/t/opencart-installation-blocked-by-open-basedir-restriction/121812>\
**Category:** Hosting Support\
**Created:** [November 5, 2026, 4:40pm UTC](https://forum.infinityfree.com/t/opencart-installation-blocked-by-open-basedir-restriction/121812 "2026-11-05T16:40:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Lemni](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/lemni/32/68303_2.png) [@Lemni](https://forum.infinityfree.com/u/Lemni)\
**Post date:** [November 5, 2026, 4:40pm UTC](https://forum.infinityfree.com/t/opencart-installation-blocked-by-open-basedir-restriction/121812/3 "2026-11-05T16:40:44Z")

</div>

_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:

> [@How to install OpenCart on InfinityFree](https://forum.infinityfree.com/docs?topic=96859):
>
> OpenCart is a popular and powerful option for building an online store, and you can run it on InfinityFree! However, there are a few special steps you need to follow to ensure OpenCart runs smoothly on our hosting platform. The good news is that you can install OpenCart using Softaculous with just a few minor changes. Configuring the Data Directory OpenCart requires a Data Directory to function properly. This directory stores part of OpenCart’s code, as well as uploaded files, caches, and othe…

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`:

> [@Basedir and Softacolous bugs (OpenCart)](https://forum.infinityfree.com/t/basedir-and-softacolous-bugs-opencart/109994):
>
> Website URL [https://conny.parts](https://conny.parts)Error Message (during OpenCart MANUAL install) Warning: open\_basedir needs to allow access to /home/vol9\_7/infinityfree.com/if0\_38910973/conny.parts/ Required basedir: /home/vol9\_7/infinityfree.com/if0\_38910973/conny.parts/ Actual basedir: /home/vol9\_7/infinityfree.com/if0\_38910973/conny.parts/htdocs/ Other Information Whenever i try to manually upload and install OpenCart on my site, it won’t work because of basedir restriction etc etc (OC software needs “o…

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.

---

_[View the full topic](https://forum.infinityfree.com/t/opencart-installation-blocked-by-open-basedir-restriction/121812)._
