• 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

SymLinks Forbidden

S

S8Design

Guest
Hi,

I’m having difficulty setting up symlinks on my linux server (CentOS / Plesk 9.0.1) and really hope someone can help me solve this issue. I've trawled the web/forum looking for solutions and also looked on Plesk's help section but nothing seems to be working for me.

For testing perposes I have created symlinks in a subdirectory of my website which point to files in the website’s root directory. But when following the SymLinks in my browser I am presented with a “Forbidden†error.

Both the root (httpdocs) and subdirectory folders have permissions set to 755. I have tried including a .htaccess file in both of these folders with the declaration: “Options +FollowSymLinksâ€

I have also created a vhosts.conf file in the conf directory of the domain with each of the following in turn:

<Directory />
AllowOverride All
Options +FollowSymLinks
</Directory>

<Directory “/var/www/vhosts/matthewtrinder.co.uk/httpdocsâ€>
AllowOverride All
Options +FollowSymLinks
</Directory>

<Directory “/var/www/vhosts/matthewtrinder.co.uk/httpdocs/c5â€>
AllowOverride All
Options +FollowSymLinks
</Directory>

After each upload of the vhosts.conf file I restarted apache via the “Services Management†option in Plesk but still have no success with following the SymLinks.

Any help or advice you can give me with this would be most appreciated.

Regards,
Matt

PS: I will want to create more SymLinks for every domain I add to my server so if there's any way to allow the following of SymLinks globally rather than on a per-domain basis I'd appreciate advice on that. Are there any resonable security issues with enabling SymLinks for the entire server?

PPS: I'm pretty new to server administration AND linux so I'm trying to scrape through with whatever I can figure out for myself or learn on the net/from other people - so please be gentle with me :)
 
Back
Top