Symbolic link not allowed or link target not accessible Apache Centos

fdhbox

Verified User
Joined
Sep 2, 2019
Messages
10
Hello,

Need Help. Images on my websites are not showing. I have looked at the error logs it says.

"Symbolic link not allowed or link target not accessible"

This is my setup i have a source image directory /home/user_source/public_html/images
Several websites used the source image directory using symbolic link

/home/user1/public_html/images --> /home/user_source/public_html/images
/home/user2/public_html/images --> /home/user_source/public_html/images
/home/user3/public_html/images --> /home/user_source/public_html/images

All of the users websites images are not showing and error is

"Symbolic link not allowed or link target not accessible"

server config is Apache 2.4, PHP version 5.6 in mod_php

Everything is running with my Cpanel server with this setup.

Since Cpanel is getting expensive i am now exploring DirectAdmin.


Any help is highly appreciated.



Francis
 
Hello,

That would be a security flaw. Apache won't allow it. You need to find another solution without using symlinks between different users.
 
Hello,

That would be a security flaw. Apache won't allow it. You need to find another solution without using symlinks between different users.

Hi thanks for taking the time to help.

Its my own server. I am running different websites and would like to have a single source for easy and fast updating.



Francis
 
found a solution.

chmod -R o+x /home/user_directory
chmod -R o+x /home/target_directory

change owner of the symbolic link to owner of the target link

chown -R owner_target_link: directory


I hope this will be a big help to other.


fdhbox
 
Back
Top