Koozali.org: home of the SME Server

synlinks and netjuke ( or any other script for that matter)

Offline horsedog

  • *
  • 16
  • +0/-0
    • http://www.thecardpros.com
I'm trying to wrapp my head arround symbolic links...

I've installed some additional hard drives and created links to previously created ibays to have access to the space..
I've copied the chown info from the files and html  directorys back to the mounted hd.. probably not the the correct location but it allows me access through samba and apache. -- they work fine!

I created another smy link to the directory that netjuke  by default looks for files.. and as a 2nd attempt also edited the netjuke config file to point directly to the ibay where the mp3 are located

Neither method works- I can follow the links in samba and through the native file system, but netjuke refuses to see the link..

The QUESTION(S)

Is this behavior a netjuke thing, or an apache/php thing for secrity..

how to fix it ?

thnx

Offline horsedog

  • *
  • 16
  • +0/-0
    • http://www.thecardpros.com
answers to my own quest
« Reply #1 on: May 01, 2005, 08:10:29 PM »
It is definately an apache /php issue, and can be resolved through including some variation of

Options FollowSymlinks

in either the http conf  or .htaccess   for this domain

Which is better ?  Easer is the .htaccess once I figure out how to craft it...

??

Offline sqlerror

  • ***
  • 50
  • +0/-0
Re: synlinks and netjuke ( or any other script for that matt
« Reply #2 on: May 01, 2005, 10:35:27 PM »
Quote from: "horsedog"
I'm trying to wrapp my head arround symbolic links...

how to fix it ?

thnx

I have Netjuke configured to use folders on a second harddrive and some folders via a symbolic link to a folder outside the Netjuke Ibay.

My Netjuke install is per the HowTo by Swerts Knudsen: http://sme.swerts-knudsen.dk/howtos/howto_8.htm

My mp3's are in: /home/e-smith/files/ibays/netjuke/html/var/music

To use the second drive for Netjuke, I mounted it in /etc/fstab like:
Code: [Select]
/dev/hdb1  /home/e-smith/files/ibays/netjuke/html/var/music ext3    usrquota,grpquota 1 2


The symbolic I use is created as ~mounted in the /home/e-smith/files/ibays/netjuke/html/var/music folder. The link is pointing to my mp3 folder /mnt/mp3.

To be able to use this symbolic link with Netjuke installed in an I-Bay, the I-bay has to be configured to give scripts access to files stored outside the I-Bay folders. This is controlled by the PHP setting PHPBasedir for the SME I-Bay account 'netjuke'. To give your Netjuke install access to the folders outside the I-Bay folders, use the following commands:(in this case enable Netjuke to access the folders /tmp and /mnt):
Code: [Select]
/sbin/e-smith/db accounts setprop netjuke PHPBaseDir /home/e-smith/files/ibays/netjuke/:/tmp:/mnt/
To activate these settings, use:
Code: [Select]
/sbin/e-smith/signal-event ibay-modify netjuke


Sqlerror