How to have your own server to stream music

All of us who like music know spotify, that is why we are going to learn how to have our own server to store our music, which we will then listen to from any of our devices (Android, Ios, PC, etc.), without the need to install anything or the g nor from anywhere else.

For this we are going to use cool an open source tool, with a long history and an excellent development community.

What is Koel?

koel, owes its name to a singing bird, it arises from the need to have a complete, usable, free and beautiful tool to store music on a server, which will then be played from other devices. cool

It is built with the frameworks Laravel for the client side and Vue.js server-side, using ECMAScript, Sass and HTML5, It is designed to be used with any of the modern browsers, its installation and use is quite simple.

This application has a very neat interface, in addition to having features such as random music, uploading music with drag and drop, name change, among others.

How to install Koel

Before installing Koel we must meet certain requirements for the server side

Koel server requirements

Consider modifying in the php.ini the memory_limit for a value greater than 512M
  • All Laravel requirements - PHP, OpenSSL, composer and such.
  • MySQL or MariaDB.
  • The latest stable version of NodeJS with npm for VueJS

Installing Koel on the Server

From the console run the following commands:

cd PUBLIC_DIR git clone https://github.com/phanan/koel.git .
git checkout v2.2.0 # Check the latest version at https://github.com/phanan/koel/releases
composer install

Now modify the .env with your data. These are the minimum values ​​that you must fill in:

  • DB_CONNECTION, DB_HOST, DB_DATABASE, DB_USERNAME, DB_PASSWORD
  • ADMIN_EMAIL, ADMIN_NAME, ADMIN_PASSWORD
  • APP_MAX_SCAN_TIME

After you have configured your .env start your koel instance, with the following command

php artisan koel: init

Then you can access your music streaming server server, accessing from your browser to http://localhost:8000/

Conclusions about Koel

Without a doubt, Koel is a fairly robust tool that solves a fairly common problem, which is being able to access your music without restriction from anywhere and with any device.

It is also important to emphasize that Koel has various features such as Playlist, grouping of songs by artist, album, etc., it can also be integrated with song lyrics services.

And finally, if you want, you can also register users to those you want (and you have permissions) share the music you have stored.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Walter Fabian Rodriguez Salazar said

    Laravel for the client side and Vue.js for the server side ???? Since when is php used on the client side?

    1.    Max Steel said

      Since there is a php interpreter for the console, just like python. There is even a Gtk Php interface.

  2.   George said

    And why Koel and not MPD? Or could you give a class on how to configure your streaming with MPD, please?

  3.    HO2gi said

    What an aesthetic that blog has, very nice but it takes forever to open.

  4.    anon132 said

    So are plagiarism returning?

  5.    Luigys toro said

    There is no plagiarism of any kind, the friend made a review of our article on his blog .. And he linked us.