Applicable to:
- Plesk for Linux
Symptoms
- Opening Domains > example.com > File Manager fails with a warning:
PLESK_WARN: Symlinks out of webspace are prohibited /: Access to realpath denied: /var/www/vhosts/example.com/ to /var/www/vhosts/example.com.
- Opening only a certain directory in the File Manager of a Plesk domain fails with a warning:
PLESK_WARN: Symlinks out of webspace are prohibited /: Access to realpath denied: /root/web/ to /var/www/vhosts/example.com.
- The directory that you are attempting to reach via the File Manager is symlinked to a directory that lies outside of the Plesk file structure (
/root/web
or a directory in an entirely different disk for example) - The Plesk domain's home directory is moved to another drive and its location is replaced with a symlink.
Cause
Symbolic links that lead to directories that lie outside of the Plesk file structure or outside of the Subscription that is used at the time are not opened in the Plesk File Manager. Such actions are forbidden intentionally in order to keep the Subscription isolation that is a core part of the way in which Plesk functions in tact.
Resolution
As a workaround, you should mount the other disk directory directly within the path /var/www/vhosts/example.com/
and make sure that it has sufficient permissions and is owned by the Plesk Subscription system user and the psacln group .
Note: This is an administrative task and should be performed by the system administrator or server owner.
Internal example:
First you need to make sure that the contents of the /root/web
are owned by the system user of the Plesk Subscription and that sufficient permissions are present.
Afterwards, you need to mount the source directory /root/web
to the destination directory /var/www/vhosts/example.com/web
(make sure an empty target directory exists), which can be done by executing the following command:
mount -o bind /root/web /var/www/vhosts/example.com/web
This will make the contents of the /root/web
manageable in the /var/www/vhosts/example.com/web
path after opening the File Manager as the system user of the Plesk subscription.
Comments
0 comments
Please sign in to leave a comment.