AzuraCast is a free and open-source web radio station management software designed to simplify the process of creating and managing an internet radio station. In this tutorial, we will guide you through the process of installing and setting up AzuraCast on Debian Latest.
Before we begin, it's essential to update your Debian server to the latest version. You can do this by running the following command:
sudo apt update
sudo apt upgrade
Next, you need to install some required packages before installing AzuraCast. These packages include Apache, PHP 7.3, and other required PHP modules. Run the following command to install the packages:
sudo apt install apache2 libapache2-mod-php7.3 php7.3-cli php7.3-curl php7.3-gd php7.3-intl php7.3-mbstring php7.3-mysql php7.3-soap php7.3-xml php7.3-zip git unzip curl
Once the packages are installed, restart the Apache service with the following command:
sudo systemctl restart apache2
Now that we have all the required packages installed, we can proceed with installing AzuraCast. Follow the below steps:
sudo su
/var
directory and create a new directory named www
by running the following command:cd /var
sudo mkdir www
www
directory to the Apache user:sudo chown -R www-data:www-data www
www
directory and clone the AzuraCast repository:cd www
sudo git clone https://github.com/AzuraCast/AzuraCast.git .
sudo chown -R www-data:www-data /var/www
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
sudo composer install --no-dev --prefer-dist --no-interaction
At this point, you need to create and configure the database for AzuraCast. Follow the below steps to do so:
mysql -u root -p
CREATE DATABASE azuracast;
CREATE USER 'azuracast'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON azuracast.* TO 'azuracast'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit
.env.example
file to .env
:sudo cp .env.example .env
AZURACAST_DB_USER
, AZURACAST_DB_PASSWORD
, and AZURACAST_DB_DATABASE
variables in the .env
file with the details from the previous step:AZURACAST_DB_USER=azuracast
AZURACAST_DB_PASSWORD=password
AZURACAST_DB_DATABASE=azuracast
installer.php
file and then remove it:sudo cp ../../installer.php .
sudo rm ../../installer.php
Now you can complete the installation of AzuraCast by running the following commands:
sudo php docker.php setup
sudo php docker.php update-self
sudo php docker.php update
sudo php azuracast_install.php
sudo chown -R www-data:www-data /var/www
To access the AzuraCast web interface, open your web browser and go to http://your_server_ip/
. You should be redirected to the installation page, where you can set up your station.
Conclusion
This tutorial has guided you through the process of installing AzuraCast on Debian Latest. You can now create and manage your internet radio station using AzuraCast.
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!
Alternatively, for the best virtual desktop, try Shells!