Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: arnoldob on March 12, 2007, 07:11:43 PM
-
Hello,
I use netjuke to play music on my LAN. I have the music in /opt/music. Netjuke wants it in /home/e-smith/files/ibays/netjuke/html/var/music so i copied the stuff that netjuke had in it's music directory to /opt/music, deleted the existing directory created a symlink:
ln -s /opt/music /home/e-smith/files/ibays/netjuke/html/var/music
Went to the music folder from:
/home/e-smith/files/ibays/netjuke/html/var/music
and ran:
chown -R www:www *
chmod -R 775 *
Added the new dir so PHP won't complain:
db accounts setprop netjuke PHPBaseDir /home/e-smith/files/ibays/netjuke/:/tmp:/opt/music
signal-event ibay-modify netjuke
expand-template /etc/httpd/conf/httpd.conf
/etc/rc7.d/S86httpd-e-smith sigusr1
So far I can browse the music dir from WinXP boxes on the LAN and play stuff directly from there, but when I launch a link from netjuke I always get a general error from realplayer indicating the file cannot be found. I'd prefer that netjuke handle moving files around etc. I had one of the kids accidentally move files around and delete them in the past when they had direct access to the music files in an ibay.
There are no helpful errors in the messages log, I guess SME 7.1.2 doesn't log php errors there anymore? I see this in the httpd.log:
[Mon Mar 12 12:38:12 2007] [error] [client 192.168.1.202] Symbolic link not allowed: /home/e-smith/files/ibays/netjuke/html/var/music
[Mon Mar 12 12:39:49 2007] [error] [client 192.168.1.202] Symbolic link not allowed: /home/e-smith/files/ibays/netjuke/html/var/music
[Mon Mar 12 13:20:23 2007] [error] [client 192.168.1.202] Symbolic link not allowed: /home/e-smith/files/ibays/netjuke/html/var/music
[Mon Mar 12 13:50:41 2007] [error] [client 192.168.1.202] Symbolic link not allowed: /home/e-smith/files/ibays/netjuke/html/var/music
[Mon Mar 12 13:53:15 2007] [error] [client 192.168.1.202] Symbolic link not allowed: /home/e-smith/files/ibays/netjuke/html/var/music
[Mon Mar 12 13:53:39 2007] [error] [client 192.168.1.202] Symbolic link not allowed: /home/e-smith/files/ibays/netjuke/html/var/music
I think I missed something that would let a php app in an ibay run/modify files stored in /opt/music. Any clues?
-
[Mon Mar 12 13:53:39 2007] [error] [client 192.168.1.202] Symbolic link not allowed: /home/e-smith/files/ibays/netjuke/html/var/music
I think I missed something that would let a php app in an ibay run/modify files stored in /opt/music. Any clues?
Did you set:Options +FollowSymLinks
in the apache/httpd configuration file for your ibay?
If i were you I'd prefer you not to create an ibay but create a new template instead to configure everything properly so you can use var/www or /opt for all neccesarry code.
-
Didn't use a tewmplate:
[root@spanky ~]# db accounts show netjuke
netjuke=ibay
CgiBin=enabled
FollowSymLinks=enabled
Gid=5012
Group=adults
Name=shared music
PHPBaseDir=/home/e-smith/files/ibays/netjuke/:/tmp:/opt/music
PasswordSet=yes
PublicAccess=global-pw-remote
Uid=5012
UserAccess=wr-group-rd-everyone