How to install Icecast on Linux

Home > Search > How-to
  by

Use the apt-get or yum command to install Icecast2.

apt-get install icecast2
yum install icecast2

 

By default, the owner and group owner of the Icecast access.log and error.log is root:root. Change the owner to be icecast2:icecast2. This is necessary to prevent error "could not open access.log", which may prevent Icecast from starting.

chown -r icecast2:icecast2 /var/log/icecast2

 

After Icecast has installed, ensure Icecast is active and running.

systemctl enable icecast2
systemctl start icecast2
systemctl status icecast2

 

Type http://localhost:8080 into the Web browser.

Next we need to change the logdir, webroot and adminroot directives in the /etc/icecast2/icecast.xml file.

  1. In Terminal, type nano /etc/icecast2/icecast.xml and press Enter.
  2. Press Ctrl W, type logdir and press Enter to go to the area of the icecast.xml file that has the logdir directive.
  3. Ensure the directive reads <logdir>/var/log/icecast2/</logdir>
  4. Ensure the webroot directive reads <webroot>/etc/icecast2/web/</webroot>
  5. Ensure the adminroot directive reads <adminroot>/etc/icecast2/admin/</adminroot>
  6. Press Ctrl O (to save)
  7. Press Ctrl X (to exit the nano editor)

 

If Icecast is running on the same image as your Apache Web Server, Apache might be using port 8080. In this case, we would just need to give Icecast a different port, such as 8181.



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments