LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-15-2014, 06:16 PM   #1
thealmightyos
Member
 
Registered: Mar 2009
Distribution: CentOS 6.5 / 7
Posts: 90

Rep: Reputation: 0
Including external data (network/external drive) in website directory


I spent an hour trying to articulate this post and the subject as it is difficult for me to describe. Suggestions for better wordings are welcome.

I have a few web applications on my server that require data (such as a music collection folder in the example I am about to supply) and that data IS NOT on the server. I want to figure out how to make that work.

Example: ampache. If you haven't heard of it, ampache is an online music player/streamer. You login, select the song/playlist/stream you want and ether listen though your browser or stream to the music player of your choice. But for ampache to serve up music it needs music. The files are in two network locations (my pc and my girlfriends pc) and the combined size would take up much more space on the server than I am comfortable with. I already have those two computers automounted in /%pcname%/. I attempted to make a sym-link to the music directory of those pcs in my html folder but ampache will not follow them (yes, I have follow symlinks turned on in my config). I thought about changing the mount point to html but that means I am sharing a lot of files I don't particularly want to. They might not be immediately exposed but one could get to them if they tried.

I have an external drive (usb) that could fit all the music files if I were to transfer them. However, it is also my backup/portable tools drive. If I did transfer the music files to the drive I would still be in the same place. Do I mount the whole drive to html? but that would make my data available to anyone that knew where to look.

So I do not know what to do and I am having a hard time even explaining the situation. I think my problem is that this is a very non-standard config I am trying to build.
 
Old 08-17-2014, 03:30 AM   #2
descendant_command
Member
 
Registered: Mar 2012
Posts: 796

Rep: Reputation: 180Reputation: 180
No, very standard.
If they are already mounted as part of the filesystem than that is most of the job done.
Make sure that your webserver user (www-data or whatever) has appropriate permissions to the dir/files.
 
Old 08-19-2014, 12:14 PM   #3
thealmightyos
Member
 
Registered: Mar 2009
Distribution: CentOS 6.5 / 7
Posts: 90

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by descendant_command View Post
Make sure that your webserver user (www-data or whatever) has appropriate permissions to the dir/files.
I think this is the problem I am having. Specifically permissions. I am finding it very difficult to chose the correct permissions and set the correct owners on various parts of my install. I thought I understood permissions but now I think I might know only enough to cause myself problems. I am going to have to google up some tuts on permissions.

Thank you for your reply.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trying to recover data from Hitachi 3TB external drive HELP ME! tcpdumper Linux - Software 12 12-19-2012 06:54 PM
How to recover data from external USB Drive montylee Linux - Software 6 09-22-2011 12:38 PM
Multiple Distros - One Data Partition - External Drive adam.ec Linux - General 4 04-09-2010 08:27 PM
Ubuntu Newbie...need to clone drive and store data on external drive Mike31718 Ubuntu 15 02-25-2010 06:33 PM


All times are GMT -5. The time now is 01:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration