Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.