View Full Version : Ampache question
bigern75
May 5th, 2006, 11:29 AM
Ive got Ubuntu Center on a local box at my house. Running off of port 81. I would like to post a link on one of web sites so others can listen. But with all the auth's turned off it still wants an auth to login to Ubuntu center. Now, how do I get it around the Ubuntu center and straight to the player. http://70.178.128.91:81/center/music/song.php is the URL I get when I tell it to start playing.
TTT_travis
May 5th, 2006, 04:45 PM
Ive got Ubuntu Center on a local box at my house. Running off of port 81. I would like to post a link on one of web sites so others can listen. But with all the auth's turned off it still wants an auth to login to Ubuntu center. Now, how do I get it around the Ubuntu center and straight to the player. http://70.178.128.91:81/center/music/song.php is the URL I get when I tell it to start playing.
Ok heres the thing, if you do take off authentication people will have access to various aspects of your ubuntu center box with is generally a bad idea, if you just want music you might want to just install ampache by itself.
anyway, to answer your question you would have to run the following commands to remove all authentication
sudo rm /etc/apache2/conf.d
sudo rm /var/www/center/.htpasswd
sudo rm /var/www/center/.htaccess
/etc/init.d/apache2 restart
that should remove authentication.
bigern75
May 5th, 2006, 04:57 PM
yeah, I didnt want all auth gone to the center. Just wodering if I could bypass it and let people listen to my music, kinda like doing a shoutcast box. I guess I could just install schoutcast and all its goodies on here and do that. Thanks for the info :)
TTT_travis
May 6th, 2006, 12:39 AM
yeah, I didnt want all auth gone to the center. Just wodering if I could bypass it and let people listen to my music, kinda like doing a shoutcast box. I guess I could just install schoutcast and all its goodies on here and do that. Thanks for the info :)
oh, I totally get ya, alright heres what you need todo to do that:
got /var/www/center/music make a new file called .htpasswd inside that file put the following
order allow,deny
allow from all
satisfy any
that will remove authentication for just that part, however it will still have the ubuntu center design and stuff if you just want pure ampache you might want to just install it from http://ampache.com
Travis
bigern75
May 6th, 2006, 09:26 AM
ok
did that
Now, heres the link http://70.178.128.91:81/center/music/
But it still asks for a user&pass :confused:
or do I need to provide a diff link to get to the player
Thanks
TTT_travis
May 6th, 2006, 01:49 PM
ok
did that
Now, heres the link http://70.178.128.91:81/center/music/
But it still asks for a user&pass :confused:
or do I need to provide a diff link to get to the player
Thanks
oops I'm sorry I gave you the wrong filename I mean't .htaccess, run this command to fix that
mv /var/www/center/music/.htpasswd /var/www/center/music/.htaccess
that should fix it,
Travis
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.