SymLinks Problem SymLinks Problem
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

SymLinks Problem

Started by harshav, May 24, 2006, 08:54:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

harshav

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

Joachim Müller

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.

Stramm

followsymlinks needs to be in the directory directive for the filesystem dir your symlink is in (your coppermine directory)

harshav

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