• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

PHP open_basedir problem

arhood

New Pleskian
Ver. 10.4.4
I have been tring to access files outside of the domain root without success.

I tried various custom open_basedir settings in the PHP SETTINGS of the domain including entering 'none' and adding another path such as D:/domain but still got the 'open_basedir restriction in effect' error.

As a test I set the open_basedir field to D:/Plesk and tried the following :-

$idir = is_dir("D:/Plesk/VHOSTS/mydomain.com/cgi-bin"); which was succesful.

However if I remove the '/cgi-bin' i.e. :-
$idir = is_dir("D:/Plesk/VHOSTS/mydomain.com"); I get the following error.

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(D:/Plesk/VHOSTS/domain.com) is not within the allowed path(s): (D:/Plesk) in D:\Plesk\VHOSTS\mydomain.com\httpdocs\retfiles.php

This seems strange, it looks like nomatter where open_basedir is set I can only acces files withinin the domain root. This does not agree with what I have read elsewhere.

Can anybody help?

Many thanks
 
Looks like I missed the post on this problem that was made last year, I really should be more thorough.

Can't quite believe that it's not been fixed.

Not very keen on changing the registry but will have a go.
 
Back
Top