LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-10-2014, 12:48 PM   #1
slurt
LQ Newbie
 
Registered: Jan 2009
Posts: 9

Rep: Reputation: 0
A Home Server With Media Files in Home Directory vs. /var/www/music


Hi,

This is for a home meda (intranet) server. My previous setup:

Using Ubuntu Server 12.04. LAMP stack in this case I use lighttpd for server with PHP, always works OK.

I always had all mp3 files under /var/www/music. Folders 755, files 644. Owner and group set to root but I've had it set to www-data and that worked OK too. I organize my mp3 in folders the way I like it and add Andromeda http://www.turnstyle.com/andromeda/home.asp it's a php file I put at the top of the my server's mp3 folder tree and it turns the web page into a streaming media site.

My question is:

I would like to put all my mp3 files in /home/myuser/music not in /var/www/music. That's the only difference I'd like to make, just have all media files under my home dir.

Could I keep everything the same, maybe even keep the andromedia.php file in /var/www/music but soft or hard link the media files from my home to /var/www/music?

So basically how do I store the mp3 file in home but serve/stream them? Hope I explained my question OK, thanks.
 
Old 05-11-2014, 07:42 AM   #2
antiX-Dave
LQ Newbie
 
Registered: Dec 2013
Distribution: antiX
Posts: 22

Rep: Reputation: Disabled
I cannot give you the exact steps, it has been a while since I've used lighttpd. However you should be able to change the root directory for your configured server to point to / home / usr / music rather than /var/www. Iirc this is set in /etc/lighttpd/lighttpd.conf. Opening this as root with your favorite editor and you should be able to find lines referencing /var/www just change them to /home/user/music, save, and do service lighttpd restart.
 
Old 05-11-2014, 11:06 AM   #3
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
Code:
 ln -s /home/myuser/music /var/www
 
  


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
[SOLVED] Using /var/www vs. /srv vs. /home/user/public_html NightSky Linux - Server 11 09-06-2010 12:30 AM
How do I change the path of SuExec from /var/www to /home? jerryhost.info Linux - Newbie 2 08-08-2009 09:39 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - Newbie 7 09-28-2004 04:18 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - Software 3 09-25-2004 02:38 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - General 2 09-25-2004 01:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:20 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