Amarok/Manual/Organization/Collection/RemoteCollections/Ampache: Difference between revisions

From KDE Wiki Sandbox
(→‎Ampache Client: centered, shrunk images)
(→‎Ampache Server: centered and shrunk the images)
Line 38: Line 38:
{{Input|1=/etc/init.d/apache2 restart}} so you can access '''Ampache'''<nowiki>'s</nowiki> web interface using http://localhost/music/. You get the following page:<br />
{{Input|1=/etc/init.d/apache2 restart}} so you can access '''Ampache'''<nowiki>'s</nowiki> web interface using http://localhost/music/. You get the following page:<br />
<br />
<br />
[[File:remotecollections_ampache_installation.png]]<br />
[[File:remotecollections_ampache_installation.png|center|250px]]<br />
<br />
<br />
Choose your language and click <menuchoice>Start configuration</menuchoice> to configure '''Ampache'''. Enter the configuration of your '''MySQL''' database:<br />
Choose your language and click <menuchoice>Start configuration</menuchoice> to configure '''Ampache'''. Enter the configuration of your '''MySQL''' database:<br />
<br />
<br />
[[File:remotecollections_ampache_installation1.png]]<br />
[[File:remotecollections_ampache_installation1.png|center|350px]]<br />
<br />
<br />
Click <menuchoice>Insert Database</menuchoice> to create the user and database. You will get an error message because there is already a configuration file which is empty. Just enter your '''MySQL''' configuration again and click <menuchoice>Write Config</menuchoice> and you will get a configuration file as download.<br />
Click <menuchoice>Insert Database</menuchoice> to create the user and database. You will get an error message because there is already a configuration file which is empty. Just enter your '''MySQL''' configuration again and click <menuchoice>Write Config</menuchoice> and you will get a configuration file as download.<br />
<br />
<br />
[[File:remotecollections_ampache_installation2.png|600px]]<br />
[[File:remotecollections_ampache_installation2.png|600px|center]]<br />
<br />
<br />
Save this file to ''/usr/share/ampache/www/config/ampache.cfg.php'' and overwrite the existing (empty) configuration. After you clicked <menuchoice>Continue to Step 3</menuchoice> you can create the initial account to manage '''Ampache'''.<br />
Save this file to ''/usr/share/ampache/www/config/ampache.cfg.php'' and overwrite the existing (empty) configuration. After you clicked <menuchoice>Continue to Step 3</menuchoice> you can create the initial account to manage '''Ampache'''.<br />
<br />
<br />
[[File:remotecollections_ampache_installation3.png]]<br />
[[File:remotecollections_ampache_installation3.png|center]]<br />
<br />
<br />
Log into your newly created account:<br />
Log into your newly created account:<br />
<br />
<br />
[[File:remotecollections_ampache_login.png]]<br />
[[File:remotecollections_ampache_login.png|center|300px]]<br />
<br />
<br />
And you will get the web interface:<br />
And you will get the web interface:<br />
<br />
<br />
[[File:remotecollections_ampache_webinterface.png|500px]]<br />
[[File:remotecollections_ampache_webinterface.png|300px|center]]<br />
<br />
<br />
Click on <menuchoice>Add a Catalog</menuchoice> in the <menuchoice>Admin</menuchoice> on the left to create a new catalog of music.<br />
Click on <menuchoice>Add a Catalog</menuchoice> in the <menuchoice>Admin</menuchoice> on the left to create a new catalog of music.<br />
<br />
<br />
[[File:remotecollections_ampache_catalog.png|600px]]
[[File:remotecollections_ampache_catalog.png|600px|center]]
<br />
<br />
Create a new guest account using <menuchoice>Admin -> Add User</menuchoice>:<br />
Create a new guest account using <menuchoice>Admin -> Add User</menuchoice>:<br />
<br />
<br />
[[File:remotecollections_ampache_createuser.png]]<br />
[[File:remotecollections_ampache_createuser.png|center|400px]]<br />
<br />
<br />
Now you need to allow guest access on your server. Open the configuration in ''/usr/share/ampache/www/config/ampache.cfg.php'' and remove the ';' character before ''auto_user = "guest"''. Restart '''Apache''' and the server configuration is finished.
Now you need to allow guest access on your server. Open the configuration in ''/usr/share/ampache/www/config/ampache.cfg.php'' and remove the ';' character before ''auto_user = "guest"''. Restart '''Apache''' and the server configuration is finished.

Revision as of 11:02, 1 February 2011

Under Construction
This is a new page, currently under construction!


Ampache

Amarok is able to play music from an Ampache media server. Ampache needs an Apache server to work.

Ampache Client

Activate the Ampache service using Settings -> Configure Amarok... -> Internet Services.



Configure the service with the data entered on the server:



Now the Ampache service should appear in the left pane.


Ampache Server

On Debian-based distributions like Ubuntu you can install Ampache using

sudo apt-get install ampache

You need to tell the Apache server where it can find the Ampache files. Create the file /etc/apache2/conf.d/ampache with the following content:

Alias /music "/usr/share/ampache/www/"
<directory />
    DirectoryIndex index.php index.html
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</directory>

Restart Apache with the command

/etc/init.d/apache2 restart

so you can access Ampache's web interface using http://localhost/music/. You get the following page:




Choose your language and click Start configuration to configure Ampache. Enter the configuration of your MySQL database:



Click Insert Database to create the user and database. You will get an error message because there is already a configuration file which is empty. Just enter your MySQL configuration again and click Write Config and you will get a configuration file as download.



Save this file to /usr/share/ampache/www/config/ampache.cfg.php and overwrite the existing (empty) configuration. After you clicked Continue to Step 3 you can create the initial account to manage Ampache.



Log into your newly created account:



And you will get the web interface:



Click on Add a Catalog in the Admin on the left to create a new catalog of music.


Create a new guest account using Admin -> Add User:



Now you need to allow guest access on your server. Open the configuration in /usr/share/ampache/www/config/ampache.cfg.php and remove the ';' character before auto_user = "guest". Restart Apache and the server configuration is finished.