0

I have a subdomain called ticket.domain.com, and this is located at C:\Inetpub\vhosts\domain.com\subdomains\ticket\httpdocs...

In my Plesk settings, for the subdomain, I have specified the following settings:

include_path: 'C:\Inetpub\vhosts\domain.com\subdomains\ticket\httpdocs\'
open_basedir: 'C:\Inetpub\vhosts\domain.com\;C:\Windows\Temp\'

These settings are reflected in my phpinfo()!

However, when I try to include a local file within this directory I am receiving the open_basedir restriction in effect... error.

The local file is being included with the code include('file.php').

I therefore believe that the include_path is being ignored as the script must be looking somewhere outside the open_basedir.

Can the include_path be set at runtime? In the past, I have found that Plesk offers settings that cannot actually be changed at runtime (on Windows).

Otherwise, what else could be the issue here?

Ben Carey
  • 16,540
  • 19
  • 87
  • 169
  • 1
    Have you tried being more specific: `include './file.php';` or failing that explicitly state the full path on the file system: `include __dir__.'/file.php';` - out of curiosity what does: `echo __dir__;` give you? – Emissary Jul 01 '13 at 12:16
  • Ben - did you ever get this solved? I'm facing the same issue when trying to upload files to the server and it's driving me insane. – Mr Fett Aug 23 '13 at 12:30
  • Hi Ben, did you ever get this solved? (2) – Pujianto Jun 10 '21 at 10:07

0 Answers0