Open_basedir

Error Message

Fatal error : Uncaught RuntimeException: is_file(): open_basedir restriction in effect. File(/home/vol6_2/infinityfree.com/if0_38494588/htdocs/include/plugins/en_GB.phar/plugin.php) is not within the allowed path(s): (/php_sessions:/tmp:…:/var/www/errors:/home/vol6_2/infinityfree.com/if0_38494588/htdocs) in /home/vol6_2/infinityfree.com/if0_38494588/htdocs/include/class.plugin.php:257 Stack trace: #0 [internal function]: PluginManager::throwException(2, ‘is_file(): open…’, ‘/home/vol6_2/in…’, 299) #1 /home/vol6_2/infinityfree.com/if0_38494588/htdocs/include/class.plugin.php(299): is_file(‘/home/vol6_2/in…’) #2 /home/vol6_2/infinityfree.com/if0_38494588/htdocs/include/staff/plugin-add.inc.php(15): PluginManager::allInfos() #3 /home/vol6_2/infinityfree.com/if0_38494588/htdocs/scp/plugins.php(136): require(‘/home/vol6_2/in…’) #4 {main} thrown in /home/vol6_2/infinityfree.com/if0_38494588/htdocs/include/class.plugin.php on line 257

Other Information

I am going to install web page related plugin through website plugin installer. I have copied relevant plugin related files to htdocs/include/ folder

We use open_basedir as one of the measures to ensure websites are contained within their directories and prevent other users from being able to access your files.

However, as far as I can tell, this is causing some issues with PHAR files, so it appears that they don’t work with our current setup.

We should investigate this, but you may be able to work around it in the mean time.

Could you perhaps try to extract the .PHAR file on your computer and just put the extracted files in a directory? If you rename the .phar to .zip, you should just be able to extract it. And as far as I can tell, osTicket also supports loading plugins from directories.

7 Likes

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