Ampache on Ubuntu

Installation Of Ampache

Installation Directories

When installing Ampache from the repositories the source of Ampache will be installed to:

/usr/share/ampache/www/

Ampache's configuration file (ampache.cfg.php) should be placed in:

/etc/ampache/

Dependencies

The ampache package depends on the following packages to be installed. These packages will be automatically downloaded and installed during this process:

  • ampache-mpm-prefork
  • debconf (>=0.5) or debconf-2.0
  • dpatch (3.3.3.5-dfsg1 only)
  • po-debconf
  • php5
  • php5-mysql
  • ttf-freefont (3.3.3.5-dfsg1 only)
  • libjs-prototype
  • libphp-snoopy

It is also recommended that you install these additional packages if not already installed:

  • mysql-server = if you don't already have one installed.
  • php5-cli = Command line tools for php5.
  • php5-gd = Image library for php5.
  • phpmyadmin = administration suite for MySQL-server written in php.
  • eyeD3 = ID3 tag editor written in python (it can mass tag read the man)

Intrepid

Intrepid will be the second Ubuntu release which will have Ampache-3.4.3-0ubuntu3. Intrepid will be released 10.30.08

Hardy

Hardy is the first official release of Ubuntu that has Ampache-3.3.3.5-dfsg1-1 included in the archives. Installing Ampache is as easy as:

apt-get install ampache

but the first thing you need to do is to insure that the following lines are uncommented (that means remove the ”#”) in your /etc/apt/sources.list.

deb http://us.archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse

Ampache does not install MySQL Server for two reasons.

  1. What if the New Ampache user is already using a remote SQL Server. (which is possible, but beyond the scope of this howto)
  2. If an Ampache user is using an older version of MySQL Server, an automatic upgrade may render their MySQL db information unusable.

So, we recommend that you backup and upgrade your existing MySQL Server setups with caution. This is how to install mysql-server:

sudo apt-get install mysql-server

So you got your Hardy box up and running and everything is going fine. Then you notice that the new and improved Ampache-3.4.1-1 is in Intrepid and you want to try it. Well good news you can install it from source and this is how.

Installing Ampache From Source

Installing Ampache from source is fairly easy. These are the basic steps you would use to install Ampache on your etch machine. Apache, PHP5 and MySQL will have to be installed and all their related dependencies before you install Ampache. The first thing we need to do is to go get some needed tools namely dget and debuild which are part of the devscripts and build-essential packages.

apt-get install devscripts build-essential

First let's make a directory we can work in

cd /home/your.name
mkdir /home/your.name/ampache
cd /home/your.name/ampache

Now let's go get Ampache's source package using dget -x.

dget -x http://archive.ubuntu.com/ubuntu/pool/universe/a/ampache/ampache_3.4.1-1.dsc

Now change directories to Ampache's source tree.

cd /home/your.name/ampache/ampache-3.4.1

Now let's build the package.

debuild -us -uc

Now that we have a nice new binary package let's install it

dpkg -i ../*deb

Ampache is now installed. It still needs configured: Continue to Ampache's Initial Configuration

 
install/ubuntu.txt · Last modified: 2009/09/16 12:29 by ascheel
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki