Music Player Daemon (mpd) for Linux allows remote access to music files and managing playlists and of course streaming (via http) of the music too.
Patchfork is a PHP (Pear) script that is able to control mpd.
1. Install mpd
apt-get install mpd lame
2. Configure mpd