• 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

Resolved Symlinks out of webspace are prohibited

modavart

New Pleskian
Hello everyone

I created a symbolic link on my server:
Code:
ln -s /data/www/domaine.fr/uploads/backup     /var/www/vhosts/domain.fr/httpdocs/wp-content/uploads/backup

Unfortunately I get this error in the file manager:
Code:
Unable to open the directory: Symlinks out of webspace are prohibited /httpdocs/wp-content/uploads/backup: Access to realpath denied: /var/www/vhosts/domaine.fr/httpdocs/wp-content/uploads/backup to /data/www/domaine.fr/uploads/backup

I added "Options +FollowSymLinks" under <IfModule mod_rewrite.c> in my .htaccess file in my /httpdocs directory.
Unfortunately I still have the problem.

I manage very well to access my files from their url for example: http://domaine.fr/wp-content/uploads/backup/file.html
On the other hand, I cannot upload files from the file manager or from my wordpress site (error 403)

Can anyone help me ?
Thank you in advance
 
I think this is the correct behavior, because else any subscription could easily read the content of other files on the same system outside their own subscription. That should not be allowed.
 
Hello Peter and thank you for your quick feedback.
Actually, I wanted to add an extra hard drive for one of my domains so that all the files in the backup folder are stored on that specific drive and not on my drive where plesk and my other domains are installed.
No way to achieve this according to you?
 
No way unless you own the server and are the only user on it. In that case you could map the drive into a folder of your domain, but for Plesk, the web server and other function it needs to look local and needs to belong to your subscription in order to access it.

Workaround: Why not add the drive as a regular partition to your system, then move your local backup path of Plesk to that drive so that all local backups that you create with the Plesk backup manager go onto that drive?
 
Hello again Peter and thank you for your responsiveness,
The folder is called 'backup' but does not correspond to the backups managed by Plesk. This is a kind of big folder containing documents uploaded frontend by my users.
In your opinion, the best thing to do is to create a logical partition and mount the partition in /var/www/vhosts/domaine.fr/httpdocs/wp-content/uploads/backup ?
 
Back
Top