CLEO Thread, Has your LancsNGFL hosted site started throwing errors after summer in Regional Broadband Consortiums (RBC); Came into work this morning to find a few emails from members of staff in our schools that are saying ...
Has your LancsNGFL hosted site started throwing errors after summer
Came into work this morning to find a few emails from members of staff in our schools that are saying thier websites are throwing up errors.
The error is:
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect.
File(/g01/inet/users/*****/docs/starnet/themes) is not within the allowed path(s):
(/g01/inet/htdocs/*****/:/g01/inet/htdocs/testsite/error_pages/:/g01/inet/htdocs/testsite/cmsCentral/:/tmp/:/g01/inet/htdocs/testsite/school-dyn6/:/g01/clamav/tmp/) in /g01/inet/htdocs/*****/starnet/core/con_configuration.inc.php on line 111
the error lists 2 different file paths, the one that it was requesting and the one it was execed from. It appears that the directory structure of the hosting has been shuffled and changed from /g01/inet/users/_FTPUSERNAME_/docs to /g01/inet/htdocs/_SUBDOMAIN_. A small change that throws errors on any sites that had the file path stored in config anywhere.
This can be fixed by simply changing the path in config.
This causes issues with Site at School
To fix go into the admin panel -> Configuration -> S@S Options
You will see 2 copies of the error at the top, copy the new path from there into the "Location on webserver" field and press save
I'm seeing problems with open_basedir restrictions with the docman module in all my Joomla sites
What software are you using on your site? LancsCMS?
About 18 months ago - a similar open_basedir error started getting thrown up when I tried to install new Joomla modules - I couldn't get anyone to fix things at webserver end and I have to manually edit Joomla core files everytime I update to a new version to get it to ignore the error.
In Joomlas case its something like Joomla thinks its installed in a path starting with /u01 but the open_basedir restrictions only allow for /g01 paths.
The webteam said they had "symbolic links" between /u01 and /g01 - I said - well it doesn't work - they never got back to me
Our schools use LancsCMS and Site at School, for LancsCMS i point them at the westfield, we had nothing to do with setup and have no control over it / and idea how it works.
Site at school does work if you change the path.
the error implies that PHP doesn't have permission to run in the target directory, if /u01 is symlinked to /g01 then you should bust be able to swap the paths in joomla without any problems, although as it seems to be in different folders that will most likely brick it.
open_basedir restriction in effect. File(/g01/inet/users/b7047/docs/dmdocuments/) is not within the allowed path(s): (/g01/inet/htdocs/broadoak/:/g01/inet/htdocs/testsite/error_pages/:/g01/inet/htdocs/testsite/cmsCentral/:/tmp/:/g01/inet/htdocs/testsite/school-dyn6/:/g01/clamav/tmp/
The problem with this is that Joomla automagically picks up the /g01/inet/users/b7047/docs path as its root folder and I've never managed to find anywhere where this value can be changed to /g01/inet/htdocs/broadoak/
Why its just happening with the Docman module - I don't know???
Maybe I'll try looking for the place that gives the error and bodge the code like I do for the install modules routine.
My Joomla site got screwed over by this... couldn't load it at all. A call went in and it was sorted pretty quickly... until I realised that trying to save in the backend simply returned Internal Server Errors.
I know the problem wasn't resolved yesterday but it now seems to be fixed... I better call Westfield and close the call I've had open for 2 weeks!