• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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