LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-07-2004, 06:30 PM   #1
cav
Member
 
Registered: Feb 2003
Location: Chicago
Distribution: Slackware 10.2
Posts: 154

Rep: Reputation: 30
Netjuke: Adding music directories to apache


I am trying to get netjuke running for a music jukebox on my LAN. So far I have gotten mysql, apache, and netjuke working with some 'test' mp3 files, however, I now need to add my entire mp3 collection, which resides on a fat partition, to the database.

What I need to do is add the mounted partition where my music is located to the apache server, But I am unsure how to do this, or if it is even possible. What do I have to include in the httpd.conf file, and what options? Thanks in advance.
 
Old 02-07-2004, 08:23 PM   #2
cav
Member
 
Registered: Feb 2003
Location: Chicago
Distribution: Slackware 10.2
Posts: 154

Original Poster
Rep: Reputation: 30
Well, I figured out that I can symlink from a directory already in the apache tree to my music directory on the fat partition, but from my browser it still doesnt link me to that directory. Instead of a directory, the browser only shows a link file which cannot be accessed. I also tried mounting my music directory to the apache web folder using mount --bind, but I still cant access it. I think all these problems have to do with permissions. I am a little confused because apache assumes user nobody, netjuke assumes root (I think), and mysql uses root and/or mysql users. AAH!
 
Old 02-07-2004, 08:43 PM   #3
cav
Member
 
Registered: Feb 2003
Location: Chicago
Distribution: Slackware 10.2
Posts: 154

Original Poster
Rep: Reputation: 30
I think I figured it out. By default, fat drives mounted from fstab arent given full permissions. So, I added the line 'umask=000' to that partition's options, binded my music directory to the apache root directory using mount --bind, and now I have access. One more question, is there some way to bind the directory automatically at startup, like an extra line in fstab? Boy, I'm having a great little conversation with myself in this thread.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding directories under root Steve Riley Linux - General 2 02-03-2005 11:17 AM
Adding directories to the PATH statement kaplan71 Slackware 2 09-02-2004 03:57 PM
Apache directories bentman78 Linux - Software 3 04-13-2004 04:44 PM
Xmms + Netjuke: 404 error when trying to play. Ctawp Linux - Software 1 11-21-2003 03:40 PM
netjuke bnumark Linux - Software 0 07-20-2003 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration