How to set up Icecast on Centos 7

Icecast is a flexible multimedia streaming service, designed to stream audio files for the most common types of audio files. This guide will show you how to set up Icecast with Centos 7 64 bit.
This guide will assume that you have Centos 7 64-bit installed, with a static IP address assigned and relevant networking setup.
Prerequisites
First, we need to download the relevant programs and repositories.
To start, download the latest epel-release rpm with the following command:
yum -y install epel-release
(You may want to run yum update to update all packages after this step)
We now need to install the libxslt-devel repository:
yum -y install libxslt-devel
Finally, install the final prerequisites:
yum install curl-devel libtheora-devel libvorbis-devel libxslt-devel speex-devel
Installing Icecast
We can now move on to installing the Icecast program for our server.
Use the following command to install the repository:
yum -y install icecast
Configuring Icecast
We now need to configure the audio server, which means we need to edit the configuration file.
This can be done by running your favourite text editor on the following file:
/etc/icecast.xml Now you want to set the bind-address to your static IP address. Make sure to open the firewall port 8000 and reload the firewall with the following commands:
firewall-cmd --zone=public --add-port=8000/tcp --permanent firewall-cmd --zone=public --add-port=8000/udp --permanent firewall-cmd --reload
Running Icecast
We can now run the server with the following command:
icecast -c /etc/icecast.xml -b
You can now access the audio server by going to your web browser and entering your hostname or IP address followed by :8000.
If the server has started successfully, you should see it on the screen.
Congratulations! Your Icecast installation has been successful.
In Conclusion
Setting up Icecast on CentOS 7 is a straightforward process when following the right steps. This guide has walked you through the installation, configuration, and activation of Icecast, allowing you to stream audio files efficiently. With a properly configured static IP and firewall rules, your audio server is now up and running, ready for you to deliver multimedia content to your audience.
Icecast’s flexibility makes it a powerful tool for multimedia streaming, whether for personal use or professional applications. By following these steps, you’re equipped to take full advantage of its capabilities.
If you encounter any issues during setup or need further assistance, our support team is available to help:
- Live Chat: Accessible anytime through our website.
- Support Portal: Submit your queries via our support system.
- Phone: Reach out to us at 0330 088 5790 (Monday to Friday, 9 am to 5 pm).
Ready to host your multimedia projects? Pair your Icecast server with one of our VPS Hosting or Dedicated Server plans for enhanced performance and scalability. Start streaming today!