coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: harshav on May 24, 2006, 08:54:19 AM

Title: SymLinks Problem
Post by: harshav on May 24, 2006, 08:54:19 AM
Hi,

I have been using coppermine photo gallery since last 2 years... Thanks to you all..


I had my own photos directory structure and created {COPPERMINE_HOME}/albums as a soft link to my photos root directory. All the photos had been batch uploaded and so that helped me maintain my directory structure.

Now I have moved my photos directory to another hard disk in the same system. I recreated the soft link albums to point to the new location. Now apache is not able to identify it.. I get the error Symbolic Link not allowed in the apache error logs. But in the apache configuration file I have put the options FollowSymLinks and it works if the soft link is in the same hard disk...

From the shell when i traverse through the link, there is no problem, but when I try to view the photos, it does not see the directories from the soft link ...

OS: Fedora
Coppermine: 1.4

Is there any configuration I am missing? Please advice...

Thanks
Harsha
Title: Re: SymLinks Problem
Post by: Joachim Müller on May 24, 2006, 08:56:51 AM
no particular coppermine option comes to mind, so I guess this is an issue with your symlink/apache setup. Maybe you'll need to check permissions and ownership.
Title: Re: SymLinks Problem
Post by: Stramm on May 24, 2006, 11:18:17 AM
followsymlinks needs to be in the directory directive for the filesystem dir your symlink is in (your coppermine directory)
Title: Re: SymLinks Problem
Post by: harshav on May 24, 2006, 06:41:57 PM
FYI..

Ok finally resolved the problem..
Its because of the SELinux extensions in Fedora..

You can check whether the directory has apache permission or not as per SELinux policy using command ls -alZ
Temporarily turn off SELinux mode by running setenforce 0 and can check..

Use chcon -R -h -t httpd_sys_content_t /path/to/directory
to provide apache access to the destination directory..

Can read more from http://fedora.redhat.com/docs/selinux-faq-fc3/index.html

Thanks for all your input...
Harsha