• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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