Sonerezh is a free and open source web-based audio streaming application that can be used to access your music from anywhere. Sonerezh also gives you a user management system with two access levels so that your friends could enjoy your music too.
Sonerezh provides lot's of features such as Playlist management, supports MySQL and PostgreSQL, simple search engine, extraction of metadata, file import and many more.
In this tutorial, we will explain how to install and configure Sonerezh with Nginx and PHP-FPM on Ubuntu 16.04.
A server runing Ubuntu-16.04 on your system.
A non-root user with sudo privileges setup on your server.
A static ip address 192.168.0.23 configured on your server.
Update the System
Before starting, you will need to update the system's package repository database with the latest version. You can do this with the following commands:
sudo apt-get update -ysudo apt-get upgrade -y
You your system is up to date you can proceed to the next step.
Installing LEMP Server
Sonerezh is a web-based application that works with your browser. Sonerezh also requires a database to store its data, so you will need a LEMP server installed on your system. If not, you can install it with the following command:
Once you are done, you can proceed to configure MariaDB database for sonerezh.
By default, MariaDB installation is not secure, so you will need to secure it first by running mysql_secure_installation script.
You can do this with the following command:
During the interactive process, answer all the questions as shown below:
Enter current password for root (enter for none): Enter
Set root password? [Y/n]: Y
New password: <your-password>
Re-enter new password: <your-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
Once MariaDB is secured, you can login to the MySQL shell with the following command:
mysql -u root -p
Enter your root password to log in, then create a database for Sonerezh installation.
Provide the database information, like database name, database username, database password, your email address and enter the path to your music data and follow the installation wizard instructions, you should see the Sonerezh login screen below:
Although data persistence is almost always a fundamental element of applications, Node.js has no native integration with databases. Everything is delegated to third-party libraries to be included manually, in addition to the standard APIs. Although MongoDB and other non-relational databases are the most common choice with Node because if you...