Koel is designed to handle large music collections and is optimized for MP3 streaming. It works with any media format that can be streamed over HTTP / HTTPS, including AAC, OGG, WMA, FLAC, APE, and more. This brief tutorial shows students and new users how to easily install the Koel streaming server on Ubuntu 16.04 and 18.04 LTS servers and desktops. For more about Koel, please check out its homepage. When you’re ready, follow the steps below:

Install MariaDB Database Server

MariaDB database server is a great place to start when looking at open-source database servers to use with Koel. To install MariaDB run the commands below. After installing MariaDB, the commands below can be used to stop, start and enable the MariaDB service to always start up when the server boots. Run these on Ubuntu 16.04 LTS Run these on Ubuntu 18.04 and 18.10 LTS After that, run the commands below to secure the MariaDB server by creating a root password and disallowing remote root access. When prompted, answer the questions below by following the guide.

Enter current password for root (enter for none): Just press the Enter Set root password? [Y/n]: Y New password: Enter password Re-enter new password: Repeat password Remove anonymous users? [Y/n]: Y Disallow root login remotely? [Y/n]: Y Remove test database and access to it? [Y/n]:  Y Reload privilege tables now? [Y/n]:  Y

Restart MariaDB server To test if MariaDB is installed, type the commands below to logon into the MariaDB server Then type the password you created above to sign on. if successful, you should see MariaDB welcome message

Create Koel Database

Now that you’ve installed all the MariaDB required for Koel to function, continue below to create the Koel database and user. First, run the commands below to create a blank Koel database. To log on to the MariaDB database server, run the commands below. Then create a database called koeldb Create a database user called koeluser with a new password Then grant the user full access to the database. Finally, save your changes and exit.

Install PHP 7.2 / Node.js / Yarn

To quickly install Koel media streamer, you should use PHP Composer. The commands below show you how to install PHP Composer on Ubuntu. First, run the commands below to install PHP 7.2 and related modules. After installing PHP 7.2, run the commands below to install the composer. Install Node.js and Yarn You’ll also need Node.js and Yarn to get Koel working. To install both, run the commands below: Run the commands below to add Yarn’s repository key. After that, run the commands below to add Yarn’s repository to Ubuntu. When you’re done, run the commands below to install Yarn

Download and Configure Koel

Now that the required packages are installed, follow the steps below to install Koel. You’ll need to get the latest from GitHub. To do that run the commands below. Then run the commands below to download Koel’s latest version and install Koel in your home directory. When you run the last command above, you’ll be prompted to create and specify the database name and user account. After that, you will again be prompted to create a Koel admin account. Finally, run the commands below to start the server: Open your browser and browse to the server name or IP address followed by port 8080 The server started on http://localhost:8000/ You should see the Koel login page. Enjoy! You may also like the post below: