Hi there,
I've installed CMSMS 1.11.4 and have been experiencing problems with open_basedir and image uploads.
Warning: file_exists(): open_basedir restriction in effect. File(C:\Inetpub\vhosts\somewebsite.com\subdomains\demo/install) is not within the allowed path(s):
I have a number of older CMSMS installs on Windows 2008, IIS 7.5 with Plesk and haven't had these image upload problems with Windows before. I get corrupted image errors in the Gallery module or error: image too small in the slideshow module.
I've tried changing plesk from default to {docroot} or {webdocroot} and finally got it working using the direct path to httpdocs but I don't think this should be necessary.
My programmer thinks there might be a bug. Note the / slash after demo which should be \.
Anyone had these issues?
Open Base Dir problems on windows
Re: Open Base Dir problems on windows
Well, using direct path worked briefly but now getting same set of upload errors. It seems if change open_basedir type uploads work one or twice and stop working again.
Also, using {Gallery} tag produces this error: The directory 'Gallery/' does not exist. Check your parameters.
If I add {Gallery dir=uploads/images/Gallery"} i get this:
The directory 'Gallery/uploads/images/Gallery' does not exist. Check your parameters.
I have no path set in config.php.
Also, using {Gallery} tag produces this error: The directory 'Gallery/' does not exist. Check your parameters.
If I add {Gallery dir=uploads/images/Gallery"} i get this:
The directory 'Gallery/uploads/images/Gallery' does not exist. Check your parameters.
I have no path set in config.php.
Re: Open Base Dir problems on windows [SOLVED]
Turns out it's a Plesk bug in Plesk for Windows 10.4 and possibly Linux Plesk 10.4.
Under your PHP setting, open_basedir you may need to use this: {DOCROOT};C:\WINDOWS\Temp\
In Linux Plesk: {DOCROOT}:/tmp
In Windows, you may also need to fix your open_basedir registry key assuming you can gain access to the system. Turns out Plesk 10.4 will write it incorrectly on some domains.
Just search for the domain in regedit. That's the easiest way to find it.
Works for Wordpress sites on Windows too.
Under your PHP setting, open_basedir you may need to use this: {DOCROOT};C:\WINDOWS\Temp\
In Linux Plesk: {DOCROOT}:/tmp
In Windows, you may also need to fix your open_basedir registry key assuming you can gain access to the system. Turns out Plesk 10.4 will write it incorrectly on some domains.
Just search for the domain in regedit. That's the easiest way to find it.
Works for Wordpress sites on Windows too.
Last edited by sagelike on Fri Feb 01, 2013 8:03 pm, edited 2 times in total.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Open Base Dir problems on windows
CMSMS does not support running under open_basedir restrictions anyways. Too many problems, and they ALWAYS turn out to be the fault of the server.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.

