21489 Posts in 5783 Topics by 2622 members
| Go to End | Next > | |
| Author | Topic: | 2133 Views |
-
Suddenly broken site (PLESK)

15 July 2011 at 10:26am
Hi,
I started to get this in my error_log:-
PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: open_basedir restriction in effect.
File(/var/www/vhosts/stmartinsherwood.org.uk/httpdocs) is not within the allowed path(s): (/var/www/vhosts/stmartinsherwood.org.uk/httpdocs/:/tmp/)
in /var/www/vhosts/stmartinsherwood.org.uk/httpdocs/sapphire/core/ManifestBuilder.php on line 69and the dreaded white screen of whiteness.
ISP reckons nothing changed but neither has my code or DB!a) why in the warning am I getting "file not within the path" when it clearly is?
b) this eventually leads to a PHP error Debug class not found - which I think is caused by the basedir strangeness.
c) Any one got any clues where to start to fix - as site is well and truly down!The code and db when copied to my own server work great with no errors/warnings in the log.
Tempted to go to a new ISP but time is against me!Thanks very much for any wisdom!
Martin -
Re: Suddenly broken site (PLESK)

15 July 2011 at 4:27pm
have you added a silverstripe_cache folder in your base directory? it kinda looks like its trying to write temp / cache files to a folder it doesnt have permission to write to. just a guess..
-Chris
-
Re: Suddenly broken site (PLESK)

15 July 2011 at 11:13pm
small typo: make it silverstripe-cache
And be sure to make it writable... -
Re: Suddenly broken site (PLESK)

15 July 2011 at 11:18pm
Hi,
Yes have silverstripe-cache and it's writable.
This site has been up for over a year, and suddenly failed out of the blue with this error.
So have started fresh and a new install gives the same errors.
So I think it's with the service provider - bu they are saying not!Given that the exact same code and DB work on my home server and work server I think it's likely !
Asked them to turn off open_basedir temporarily to see if that gets me anywhere.
I expect it's a Plesk upgrade that's tightened something as I can pinpoint the day the warnings started in the log.I'd love a temporary way of turning off a hosted open_basedir but no success so far.
No access to /conf folder !!!Cheers anyway!
Martin -
Re: Suddenly broken site (PLESK)

16 July 2011 at 12:01am
I'd love a temporary way of turning off a hosted open_basedir but no success so far.
Isn't this possible in vhost.conf? -
Re: Suddenly broken site (PLESK)

16 July 2011 at 12:05am
yeh sure - if only I had access to that file it would be wonderful - this is a hosted plesk service so only see httpdocs and downwards
-
Re: Suddenly broken site (PLESK)

16 July 2011 at 12:17am
well, the error says that open_basedir restricts your access to /var/www/vhosts/stmartinsherwood.org.uk/httpdocs, but the filemtime(MANIFEST_FILE) function on or near line 69 in ManifestBuilder.php wants to access the /tmp/ directory.
It only wants to do that if it cannot find the silverstripe-cache directory, that should be located here in your httpdocs directory: /var/www/vhosts/stmartinsherwood.org.uk/httpdocs/silverstripe-cache/
Could it be that your install always used the /tmp/ directory, but your ISP just recently turned to open_basedir? Are there any (recent) files present in your httpdocs/silverstripe-cache directory?
-
Re: Suddenly broken site (PLESK)

16 July 2011 at 12:17am
ah
I've had issues with open_basedir using curl... but this is only in Dev mode... something triggers a warning and silverstirpe stops to show me the warning - in live mode it doesn't and just continues. I don't suppose that helps you does it - i.e. ensure the site stays in live mode...
| 2133 Views | ||
| Go to Top | Next > |


