skip to Main Content

I have a base set of files that are included from lots of other files. This saves me having to update lots of files when I made changes. The issues is, in CPanel my directory structure was:

Base: domain/public_html/base_data
Subdomain: domain/public_html/subdomain

This meant I could just go back one directory and include the file. Now that I have moved to Plesk it is like this:

Base: domain/httpdocs/base_data
Subdomain: domain/subdomains/subdomain/httpdocs/

The problem with this is none of my includes work when I ../../ out of my current sub domain into the base_data one.

Anyone have any ideas how to fix this?

EDIT: Just turned error reporting on and got this open_basedir restriction in effect. File(/var/www/vhosts/ is not within the allowed path(s): (/var/www/vhosts/ in /var/www/vhosts/ on line 14



  1. Chosen as BEST ANSWER

    Managed to sort this out by overriding the open_basedir path in a vhost.conf file.

  2. Yes use ABSOLUTE path.

    you can make a $yourLibPath = 'domain/httpdocs/base_data/';

    And then include all your libs using this var:

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top