• 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.

Problem with CGI + Openbase_dir

VinMhas

New Pleskian
Since I've installed the last update, then i've got a problem with the OpenBase_dir directive of PHP.
For example I've got three domains on my Plesk 11.0.9-server. All domains are configured with CGI.

If i change the Openbase_dir directive on domain 1, then it also changes for example domain3 among others..
This results in a broken website. If i visit domain3 i receive the following error-message:

Warning: require(): open_basedir restriction in effect. File(/var/www/vhosts/domain3.com/httpdocs/wp-blog-header.php) is not within the allowed path(s): (/var/www/vhosts/domain1.com/:/tmp/) in /var/www/vhosts/domain3.com/httpdocs/index.php on line 17 Warning: require(/var/www/vhosts/domain3.com/httpdocs/wp-blog-header.php): failed to open stream: Operation not permitted in /var/www/vhosts/domain3.com/httpdocs/index.php on line 17 Warning: require(): open_basedir restriction in effect. File(/var/www/vhosts/domain3.com/httpdocs/wp-blog-header.php) is not within the allowed path(s): (/var/www/vhosts/domain1.com/:/tmp/) in /var/www/vhosts/domain3.com/httpdocs/index.php on line 17 Warning: require(/var/www/vhosts/domain3.com/httpdocs/wp-blog-header.php): failed to open stream: Operation not permitted in /var/www/vhosts/domain3.com/httpdocs/index.php on line 17 Fatal error: require(): Failed opening required './wp-blog-header.php' (include_path='.:') in /var/www/vhosts/domain3.com/httpdocs/index.php on line 17

If I configure all the domain as a Apache-module, then the problem doesn't happen.



What's wrong?
 
Last edited:
How are you changing that openbase dir? As far as I know, each of domain have its own php settings for this, so I'm not sure how they connect? Are you going that under Websites & Domains -> scroll down and click on domain name -> PHP Settings tab -> openbase dir
 
How are you changing that openbase dir? As far as I know, each of domain have its own php settings for this, so I'm not sure how they connect? Are you going that under Websites & Domains -> scroll down and click on domain name -> PHP Settings tab -> openbase dir

That's correct! If i set a openbase_dir restriction ( let's say: [docroot:/:tmp/] or or [webspaceroot]/:[tmp:/] ) then this will affect other domains as well. Could this be a bug in 11.0.9?
To clarify: i set the openbase_dir for domain1 at [webspaceroot]/:[tmp:/] ( that would be /var/www/vhosts/domain.com/httpdocs ). If i do so, then the same restriction applies for other domain.
If i visit domain2 through my webbrowser, then i receive a message an openbase error. Domain2 can only access files in Domain1.

It seems that the openbase_dir has a global effect on the server.
 
Of course it has, since all domains are in same subscription. Try to put absolute path like /var/www/vhost/domain.com/httpdocs/your directories
 
Back
Top