Skip to content
Search

Sonerezh

lastmod 2018-08-17created 2016-06-218 edits

A self-hosted, web-based application to stream your music, everywhere.

How to install

sudo apt-get install apache2 libapache2-mod-php5
## libapache2-mod-php5 provides the following PHP extensions: bcmath bz2 calendar Core ctype date dba dom ereg exif fileinfo filter ftp gettext hash iconv libxml mbstring mhash openssl pcre Phar posix Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter zip zlib.
sudo apt-get install mariadb-server
sudo apt-get install php5-gd php5-mysql
sudo apt-get install libav-tools
sudo apt-get install unzip

mysql_secure_installation

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

sudo wget https://github.com/Sonerezh/sonerezh/archive/1.1.1.zip
unzip 1.1.1.zip
cd sonerezh-1.1.1
mv .htaccess * /var/www/html
sudo chown -R www-data:www-data /var/www/html

[Important] Edit the /etc/apache2/sites-available/default-ssl.conf file.

<VirtualHost _default_:443>
    ...
    <Directory /var/www/html>
        Options -Indexes
        AllowOverride All
        <IfModule mod_authz_core.c>
            Require all granted
        </IfModule>
    </Directory>
    ...
</VirtualHost>

WARNING

If you skip the step above, the http://localhost/install page may fail to display.

Finally, enable mod_rewrite.

sudo a2enmod rewrite
sudo service apache2 restart

If needed, enable mod_ssl.

sudo a2enmod ssl
sudo a2ensite default-ssl
sudo service apache2 reload
sudo service apache2 restart

See also

Favorite site