• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Creating/using a folder outside httpdocs level

W

webguy80

Guest
Hi,

I need to use a web directory *outside* of the document root of httpdocs to use as an include directory for php include files for use in a php application.

I tried using the private directory (there by default), and creating my own directory and assigning the proper permissions etc. Both times I get these types of errors when trying to include inc.config.php from the include directory:

Code:
Warning: main(): open_basedir restriction in effect. File(/var/www/vhosts/domain.com/private/inc.config.php) is not within the allowed path(s): (/var/www/vhosts/domain.com/httpdocs:/tmp) in /var/www/vhosts/domain.com/httpdocs/bookings/index.php on line 2

Warning: main(inc.config.php): failed to open stream: Operation not permitted in /var/www/vhosts/domain.com/httpdocs/bookings/index.php on line 2

Fatal error: main(): Failed opening required 'inc.config.php' (include_path='.:/var/www/vhosts/domain.com/private') in /var/www/vhosts/domain.com/httpdocs/bookings/index.php on line 2

I'm using a .htaccess file to assign the correct include_path using php_value flag, but I know that's not the problem, becuase I can get it to work if I'm including a file from a directory *within* httpdocs . . . any ideas how to solve this?

Many thanks!
 
hiye webguy. did you manage to get this sorted? I'm looking for a similar solution.

Dub
 
Back
Top