Plesk and openbase_dir restrictions
Unless plesk has changed in the past few years - it sets open_basedir restrictions such that you can only access the httpdocs
folder:
The default open_basedir settings gives you the ability to write to 2 locations for each website. There should be no reason to write to any other folder. [...]
- /tmp
- /var/www/vhosts/domain.com/httpdocs
As such if a request attempts to read from/write to any other location - it won't be able to do so, hence realpath
will return false for any location outside the httpdocs
folder.
if you would like to see the script linked in the referenced forum post, it moved and can be found here: unplesk.