Request to Modify open_basedir Settings for My phpBB Site

InfinityFree Support Team

I hope this message finds you well.

I am experiencing an issue with the open_basedir settings on my phpBB forum site. The error message I am encountering is as follows:

Error Message:

[phpBB Debug] “file_exists(): open_basedir restriction in effect. File(…/install/update/new/phpbb/cache/driver/file.php) is not within the allowed path(s): (/php_sessions:/tmp:…:/var/www/errors:/home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs)” in file /home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs/phpbb/class_loader.php on line 126[phpBB Debug] “file_exists(): open_basedir restriction in effect. File(…/phpbb/cache/driver/file.php) is not within the allowed path(s): (/php_sessions:/tmp:…:/var/www/errors:/home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs)” in file /home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs/phpbb/class_loader.php on line 126[phpBB Debug] “file_exists(): open_basedir restriction in effect. File(…/ext/phpbb/cache/driver/file.php) is not within the allowed path(s): (/php_sessions:/tmp:…:/var/www/errors:/home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs)” in file /home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs/phpbb/class_loader.php on line 126[phpBB Debug] “file_exists(): open_basedir restriction in effect. File(…/install/update/new/phpbb/cache/driver/base.php) is not within the allowed path(s): (/php_sessions:/tmp:…:/var/www/errors:/home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs)” in file /home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs/phpbb/class_loader.php on line 126[phpBB Debug] “file_exists(): open_basedir restriction in effect. File(…/phpbb/cache/driver/base.php) is not within the allowed path(s): (/php_sessions:/tmp:…:/var/www/errors:/home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs)” in file /home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs/phpbb/class_loader.php on line 126[phpBB Debug] “file_exists(): open_basedir restriction in effect. File(…/ext/phpbb/cache/driver/base.php) is not within the allowed path(s): (/php_sessions:/tmp:…:/var/www/errors:/home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs)” in file /home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs/phpbb/class_loader.php on line 126[phpBB Debug] “file_exists(): open_basedir restriction in effect. File(…/install/update/new/phpbb/cache/driver/driver_interface.php) is not within the allowed path(s): (/php_sessions:/tmp:…:/var/www/errors:/home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs)” in file /home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs/phpbb/class_loader.php on line 126[phpBB Debug] “file_exists(): open_basedir restriction in effect. File(…/phpbb/cache/driver/driver_interface.php) is not within the allowed path(s): (/php_sessions:/tmp:…:/var/www/errors:/home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs)” in file /home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs/phpbb/class_loader.php on line 126[phpBB Debug] “file_exists(): open_basedir restriction in effect. File(…/ext/phpbb/cache/driver/driver_interface.php) is not within the allowed path(s): (/php_sessions:/tmp:…:/var/www/errors:/home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs)” in file /home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs/phpbb/class_loader.php on line 126

Website URL: http://forum.moraltope.great-site.net

Account Name: if0_35098768

The issue arises due to the open_basedir restrictions which are preventing the phpBB system from accessing necessary files outside of the current directory.

I would like to request that you add the following paths to the open_basedir configuration to resolve this issue:

/php_sessions
/tmp
/var/www/errors
/home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net/htdocs
/home/vol1_8/infinityfree.com/if0_35098768/forum.moraltope.great-site.net
/home/vol1_8/infinityfree.com/if0_35098768/

If adding these paths is not possible, could you please provide alternative solutions or suggestions for resolving this issue?

Thank you very much for your assistance. I look forward to your response.

sorry the freehosting settings cannot be changed

3 Likes

مراحب صديقي، مررت بهذه المشكلة من قبل…سآكتب بالإنكليزية ليستفيد الجميع
Unfortunately, InfinityFree, like many shared hosting providers, imposes strict open_basedir restrictions. This means PHP scripts on your site can only access files within specific directories, usually within your own web root. This restriction is in place to enhance security in the shared hosting environment, ensuring that users cannot access each other’s files.

The open_basedir restriction is fine. With phpBB, you’re supposed to upload everything to the htdocs directory, and phpBB has no reason to try to access files outside of that directory.

Changing the open_basedir setting likely will not solve this issue, and if it does, then it’s only to work around a bug in phpBB.

The fastest solution right now I think is to just install phpBB with Softaculous instead. That way, you don’t have to interact with phpBB’s built-in installer at all.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.