Installing Ampache on unRAID


Recommended Posts

Hi...

 

has anyone installed Ampache (http://ampache.org) on unRAID?

It should be possible.

 

Ampache Requirements

 

Ampache has 3 requirements for a basic installation. These requirements are OS-Neutral meaning your operating system is not important as long as you can provide these 3 applications as a foundation.

A web server, most commonly Apache.

PHP

MySQL

 

Maybe a more advanced user could try to install it and post a installation guide.

 

Thanks

Link to comment
  • 3 weeks later...

I just found out about ampache, it seems like a awesome piece of software.  I'm trying to get it setup in windows, but it won't see my unraid share, either as a unc path or a mapped drive.  Have you gotten this to work where the catalog looks at your unraid share?

 

flips

Link to comment

I will be interested to see how that goes.  I stumbled across it last night, accidentally.  I was just looking for a way to play some songs off a share with my palm pre and I found an app that used ampache.

 

I just got localplay configured with httpq on winamp.  That's an awesome feature!  I might be using this to drive my multi-zone audio setup.  I had it going with xlobby a while back but it had a number of issues and was never a real clean setup.

 

I'm running the server from windows and it doesn't like my unraid share.  Not sure why that is.  Other shares work fine.  I don't know if it is an issue with permissions or something.  I configured the service to be run by my user...  oh well I will have to play that some more, other than it is really slick.

 

flips

Link to comment
  • 2 weeks later...
  • 2 months later...

I've been tinkering with this and have the basics working; will make a guide once I get it all hammered out.  The biggest problem I've run into so far is actually the permissions on the array :(

 

I'm using the unMenu packages for lighttpd, php, and mysql to make things easier for everyone to install (including me!) and I initially configured lighttd to run as its own user/group.  I fixed up the permissions on every location that lighttpd would need access too and all was well until I realized that my entire music library (well the test library in my VM ::)) has the permissions set as 700 and the lighttd user/group can't access them.  If I kick off the lighttd process as root, everything works fine.

 

Right now I see 3 solutions:

1. Just run the web server as root.  Everything in me cringes at the thought.  Running an externally facing process as root is just a bad, bad, BAD idea but it makes configuration and maintenance much easier.  The risk here is that there is a web server, potentially a public facing web server, running as root and if it get's breached the process can read/write anywhere on the system.

 

2. Use the lighttpd user/group to restrict access to the user under which the web server runs and write scripts to maintain the perms on music share(s).  By default, whenever a file is created/copied to the array via an SMB/CIFS share it has the perms set as 700 (directories get 711) and belong to root:root.  It would be easy to have a script fire once per day via cron that fixes the perms from 700-->744 for files and 711-->755 for dirs, but this seems to be getting messier and messier for supporting this application >:(

 

3. Mount the music share/shares via smb in another location (ie /tmp/Music) so the perms are controllable.  The problems I see here is if you mount a user share here you end up going through CIFS and fuse to get to the file >:( and it makes shutting down the array a bear.  I like elegant and this is anything but.

 

So short of there being some way to change the umask for files that get created in a particular user share I thought I'd reach out and see what the community thinks.  Would you rather just run the webserver as root and take the risk, would you be ok with needing to use scripts to modify permissions, or had you rather mount a share again locally?  I'm also curious to see if anyone has a better solution!

Link to comment
  • 5 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.