I've multiple sites I need to run off one host. they all share a library folder or two. I've been copying each one into /var/www/vhost/[HOSTNAME]/httpdocs as w workaround for the fact I cannot set things up for all the sites to use a single shared copy.
I know I need to modify "open_basedir" but I've been unable to find the right place to change "open_basedir" either manually on disk or in the plesk web UI. I've seen many users having this issue, numerous complaints about it, and it seems Plesk likes to move this particular setting around pretty frequently.
[NOTE: there were many user threads with this problem, but none of the rest were valid as they spoke of solutions referencing earlier/ different versions of plesk and none of them were relevant to 10.4.4]
I finally found the setting buried/obfuscated/ hidden here:
plesk -> server -> simple view settings -> PHP settings -> open_basedir
I tried adding my new path, no job. restarted apache, no joy. even found a reference to this..
you said..
' I think you needed to click site name at "Websites & domains", go to "PHP Settings" and then setup proper value for your "open_basedir". '
I navigated to "Websites & Domains", but the only site listed is the main server itself. none of my sub/domains are there, but I see my sub/domains in the "Webspaces" tab.
did I create my sites incorrectly? do they need to be listed where you mentioned?
I realized I needed to choose the site from the dropdown list at the top of the page under "Webspace". I selected the right site and was able to get to "Websites & domains" -> [domain name] -> "PHP settings", and examine the "open_basedir" setting.
I was able to get my files to read **outside** a restricted set of dirs by explicitly setting open_basedir to "none". you cannot leave it empty, you must set the text "none".
EDIT - I got this to work for my subdomain, yay
note I really couldn't wrap my head around that doc link that describes the hierarchy of settings - it would be helpful if it actually described where the different settings can be found. i.e. where are "Service plan" php settings accessed? where are "Add-on plan" php settings accessed? where are "Subscriptions php settings" accessed? etc.
Last edited by cc1234; May 8, 2012 at 08:34 PM.
Reason: changed status - I got it working, kinda
After moving my VPS to plesk I am getting open_base dir restrictions errors. I need to disable open_basedir in my subdomain. CC1234, how did you do to setup open_basedir "none" in plesk panel?
In php setting I see:
open_basedir:
Default
{DOCROOT}/:/tmp/
Enter custom value
to setup the open_basedir to none, I assume I have to choose Enter custom value. What's the value I am suppose to place there?
I put the following in the custom value field:
open_basedir none = didn't work.
open_basedir "none" didn't work.
none = didn't work
"none" didn't work.
Please help, this open_basedir is getting me crazy.
Hard to tell why "none" works for some servers and doesn't for others - perhaps that may depend on PHP version installed. The following can be suggested to you:
1) set open_basedir to "{WEBSPACEROOT}:/tmp/" - while it doesn't make open_basedir comletely disabled, this setting will make your site able to include files from any other folder in your space, which should be enough for most cases
2) upgrade to Plesk 11 at http://parallels.com/download/plesk/11 - it is in pre-release phase and includes pre-configured "none" option for open_basedir (simply choose in dropdown menu). This one would completely disable open_basedir for your site
Hi,
I run a magento website on my 1&1 VPS running plesk 10.4 . I wanted to disable open_basedir because it is said that improves the performance of websites based on Magento. As it seems to be a issue with this procedure on plesk 10.4, I update to plesk 11.09. But I the problems is still present.
I cant set open_basedir to "none", or disable it through php.
I find if 'none' doesn't work I just use a slash to specify it as root.
always change it in php settings tab in plesk I never put it elsewhere as plesk will just overwrite it anyway.