This document is to introduce Ampache and the AmpachePackage Project to the Ubuntu community.
Ampache is a Web-based Audio file manager. It is implemented with MySQL, and PHP. It allows you to view, edit, and play your audio files via the web. It has support for playlists, artist and album views, album art, random play, playback via Http/On the Fly Transcoding and Downsampling, Vote based playback, Mpd and Icecast, Integrated Flash Player, as well as per user themes and song play tracking. You can also Link multiple Ampache servers together using XML-RPC. Ampache supports GETTEXT translations and has a full translation of many languages.
Ampache Lead Developer Karl Vollmer, vollmer AT ampache DOT org
New Ampache Install Instructions
Ampache-22.214.171.124-dfsg1-1 will be included into the Hardy release of Ubuntu and is available for download.
Ampache-3.4.1 will be included into the Intrepid release of Ubuntu and is available for download.
Due to Debian Release Freeze Ampache-3.4.3-1 will not be in the Lenny release. However a Feature Freeze Exception was granted for Ampache-3.4.3-0ubuntu1 to be included into Intrepid.
Due to a lintian error, Ampache-3.4.3-0ubuntu1 now depends on libjs-prototype. libjs-prototype is only available in Intrepid and Lenny. Currently libjs-prototype is not in the Hardy archive unless it is backported. So what this means is that Ampache-3.4.3-0ubuntu1 will not install on Hardy or Etch due to Unmet Dependencies.
The maintainer has been kind enough to make a version of Ampache-3.4.3-0ubuntu1 for Hardy and Etch. These are not official packages so please do not file bug reports against them, contact me directly.
The Hardy/Etch version of Ampache-3.4.3-0ubuntu1 can be found here
There is also the Ampache-Themes-126.96.36.199a-1 themes package available in the Hardy archives. Sorry, for those folks using Ampache-3.4 additional themes are not yet available due to the fact that Ampache-3.4 is still in development.
Now open a terminal and type
sudo apt-get update sudo apt-get install ampache mysql-server-5.0 phpmyadmin
Set up a mysql user account with root privileges
Old Ampache Install Instructions
For those comfortable with the command line the following commands should get you up and running.
On an existing setup,
sudo apt-get install apache2-mpm-prefork, mysql-server, php5, php5-gd
NOTE-phpmyadmin can be used to create a user account with root privliges on the mysql server.
If starting from scratch, install the Ubuntu-server cd
Next open a terminal and enter the following commands.
1. cd /tmp
3. tar -xzvf current.tar.gz
4. mv ampache-??? /usr/share/
5 cd /usr/share
6. mv ampache-??? ampache
7. chown -R www-data:www-data ampache
8. nano /etc/apache2/conf.d/ampache
type into nano
Alias /ampache /usr/share/ampache
Options Indexes MultiViews
AllowOverride None Order allow,deny Allow from all
9. ctrl o to save
10. ctrl x to exit nano
11. /etc/init.d/apache2 restart
Stop here if you plan on using phpmyadmin to setup mysql user account with root priv. If not continue
12. mysql -u <username> -p
13. mysql: create database ampache;
14. mysql: \q
15. mysql -u <username> -p ampache < sql/ampache.sql
16. cp config/ampache.cfg.php.dist config/ampache.cfg.php
17. nano config/ampache.cfg.php
type into nano
local_host = localhost
local_db = ampache
local_pass = <password>
local_user = <username>
18. ctrl o to save
19. ctrl x to exit nano
Then point your web browser to http://your.domain/ampache and this will bring you to the Ampache install page and just follow the instructions.
The AmpachePackaging Project is completed.
Charlie Smotherman email@example.com
How to Enable XSPF Player
Ampache comes with a way to play media through the browser via an embedded Flash based player. The file needed for this feature has been removed from the Ubuntu package (probably for licensing reasons).
Tested Ubuntu 10.10 with Ampache 3.5.4 To use the Flash player with Ubuntu packaged Ampache: Visit Ampache website http://ampache.org/ and download Ampache 3.5.4.
Uncompress. From uncompressed directory, move: ampache-3.5.4/modules/flash/xspf_jukebox.swf
to your system: /usr/share/ampache/www/modules/flash
Player should now work.
With 11.04 Natty (ampache-3.5.4-9ubuntu3) a simple bash script has been added to do all this for you. Simply run
- bash /usr/share/ampache/www/bin/grab_xspf.sh
Daniel Mueller firstname.lastname@example.org