selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

sonerezh logo

Self-host sonerezh

v1.2.6

Self-hosted web-based music streaming application

ReleaseOpen SourceAGPL-3.0
Updated9 hours ago
LanguagePHP
Setup difficultyModerate
Stars
771
Requires
MySQL or MariaDB
Install with Build from Source
Sonerezh installation wizard showing database configuration step

What is sonerezh?

Sonerezh lets you stream your personal music collection from any device with a browser. Point it at your music folder and it automatically reads metadata from MP3, MP4, OGG/Vorbis, and FLAC files to build a searchable library. The web interface provides multiple views for browsing by artist, album, genre, or date. Setup requires a web server (Apache or Nginx), PHP with mysql and gd modules, and a MySQL or MariaDB database. Optional ffmpeg or avconv enables audio conversion. The project uses the AGPL-3.0 license and its last stable release was version 1.2.6 in September 2019, though the repository saw updates until January 2023.

Should you self-host sonerezh?

sonerezh scores 48/100 on selfhost.directory (how scoring works) and ranks #24 of 59 in Music Streaming. It has 771 GitHub stars.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is moderate: expect some configuration beyond a single command. It is AGPL-3.0-licensed and written mostly in PHP.

Its closest alternative on selfhost.directory is koel (75/100, 17 320 stars). It scores higher overall, so compare the two before you pick. See sonerezh vs koel side by side.

Features

  • Audio ConversionRequires optional ffmpeg/avconv installation
  • Automatic music library import
  • Command-line tool
  • Multi-format Audio Support
  • Web-based music streaming

sonerezh README

How to install sonerezh

Install sonerezh with Build from Source

Get the latest stable release

The releases are published on GitHub, but you should download the latest stable release from sonerezh.bzh.

# Replace tar.gz with zip if needed.
$ wget https://www.sonerezh.bzh/downloads/latest.tar.gz
$ tar -zxf latest.tar.gz
Prepare the database

The database must be created before you access Sonerezh for the first time. A simple setup could be:

$ mysql -u root -p
mysql> CREATE DATABASE sonerezh;
mysql> GRANT ALL PRIVILEGES ON sonerezh.* TO 'sonerezh'@'localhost' IDENTIFIED BY '<changeme>';
mysql> FLUSH PRIVILEGES;
exit;

Where is the password used by the MySQL user.

You may want to allow the web server system account to read this directory. Usually its www-data.

$ sudo chown -R www-data: sonerezh

Now you can go to http://127.0.0.1/install (or whatever configured domain name) to set the database settings and create the first user.

Requires web server (Apache2/Nginx), PHP with php-mysql and php-gd modules, MySQL/MariaDB database. Configuration samples for Nginx and Apache available in documentation.

sonerezh releases & version history

More in Music Streaming

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…