• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue open_basedir changes not working

serial

New Pleskian
Hi,

I try to access a file in from php in websiteA in websiteB homedir.

For example test.php in websiteA
<? require('/home/httpd/vhosts/<domainb>/httpdocs/testinclude.php');
?>

When i do that i will get a open_basedir restriction as expected and a 500 error
[Sun Mar 17 14:34:18.055943 2019] [proxy_fcgi:error] [pid 27457] [client xxxxx:37021] AH01071: Got error 'PHP message: PHP Warning: require(): open_basedir restriction in effect. File(/home/httpd/vhosts/<siteb>/httpdocs/testinclude.php) is not within the allowed path(s): (/home/httpd/vhosts/<sitea>/:/tmp/) in /home/httpd/vhosts/<sitea>/httpdocs/test.php


All the documentation i can find point in the direction to change the open_basedir path in the php settings in plesk onyx

So i go to domain->php settings->open_basedir
I enter {WEBSPACEROOT}{/}{:}{TMP}{/}:/home/httpd/vhosts/<websiteb/httpdocs/

Save the whole stuff and try again, unfortunately
[Sun Mar 17 14:35:18.055943 2019] [proxy_fcgi:error] [pid 27457] [client 149.210.167.40:37021] AH01071: Got error 'PHP message: PHP Warning: require(): open_basedir restriction in effect. File(/home/httpd/vhosts/<siteb>/httpdocs/testinclude.php) is not within the allowed path(s): (/home/httpd/vhosts/<sitea>:/tmp/:/home/httpd/vhosts/<siteb>/httpdocs/) in /home/httpd/vhosts/<sitea>/httpdocs/test.php

Any ideas ?

I've tried chmod 777 the file, but nothing seems to help.
 
This is not possible. You cannot access any files of domainB from domainA, regardless of open_basedir settings.
 
Back
Top