How to Install moOde Audio on Debian Latest

moOde Audio is a lightweight, open-source, and incredibly versatile music player software for Raspberry Pi, other ARM-based SBCs, and x86 computers. It offers convenient and straightforward web-based administration, high-quality sound output, and endless customization options. In this tutorial, we will guide you through the process of installing moOde Audio on Debian Latest OS.

Prerequisites

Before we begin, make sure you have the following prerequisites:

Step 1: Update and Upgrade Your System

Update your Debian Latest OS by running the following commands in the terminal:

sudo apt-get update
sudo apt-get upgrade

Step 2: Install Dependencies

moOde Audio requires some dependencies to be installed before it can be installed. Run the following command to install the required dependencies:

sudo apt-get install -y php-fpm nginx redis-server php-redis

Step 3: Download and Install moOde Audio

Download and install moOde Audio by running the following commands:

sudo wget http://sourceforge.net/projects/moodeaudio/files/latest/download -O moodeaudio.zip
sudo unzip moodeaudio.zip -d /var/www/
sudo mv /var/www/moode-master /var/www/moodeaudio
sudo chown -R www-data:www-data /var/www/moodeaudio
sudo chmod -R 777 /var/www/moodeaudio/config

Step 4: Configure nginx

Configure nginx by creating a new configuration file “moodeaudio” in the “/etc/nginx/sites-enabled” directory by running the following command:

sudo nano /etc/nginx/sites-enabled/moodeaudio

Paste the following content into the file:

server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/moodeaudio;
index index.php;
server_name _;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}

Save and exit the file.

Step 5: Restart nginx and PHP-FPM

Restart the nginx and PHP-FPM services to apply all changes by running the following commands:

sudo systemctl restart nginx
sudo service php7.0-fpm restart

Step 6: Access moOde Audio

moOde Audio is now installed and ready to use. Open your web browser and navigate to http://<<YOUR_IP_ADDRESS>>/moodeaudio/ to access the moOde Audio interface.

Conclusion

We’ve reached the end of this tutorial. You can now enjoy using the moOde Audio software on your Debian Latest OS.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!