Thursday, January 27, 2022

How To Install AirSonic Media Server With Apache on Rocky Linux 8.5

 in This Tutorial you will learn "How To Install AirSonic Media Server With Apache web server on Rocky Linux 8.5"     
AirSonic is a free and open source media streaming server. Apache is the most commonly used Web server on Linux systems.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      | IP -192.168.1.60        |Hostname - server.yourdomain.com
_________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; java -version ; sestatus
dnf groupinstall "Development Tools" -y
useradd airsonic ; mkdir /var/airsonic /var/media_files
wget https://github.com/airsonic/airsonic/releases/download/v10.4.1/airsonic.war --output-document=/var/airsonic/airsonic.war
chown -R airsonic /var/airsonic ; chown -R airsonic /var/media_files

wget https://raw.githubusercontent.com/airsonic/airsonic/master/contrib/airsonic.service -O /etc/systemd/system/airsonic.service
 wget https://raw.githubusercontent.com/airsonic/airsonic/master/contrib/airsonic-systemd-env -O /etc/sysconfig/airsonic
systemctl daemon-reload ; systemctl start airsonic ; systemctl enable airsonic ; systemctl status airsonic

dnf update ; dnf install httpd -y
nano /etc/httpd/conf.d/airsonic.conf
<VirtualHost *:80>
        ServerAdmin admin@airsonic.com
        ServerName www.airsonic.com    
        ErrorLog /var/log/httpd/error.log
        CustomLog /var/log/httpd/access.log combined
        ProxyRequests On
        ProxyPass / http://localhost:8080/
        ProxyPassReverse / http://localhost:8080/
</VirtualHost>
systemctl start httpd ; systemctl enable httpd ; systemctl status httpd
apachectl configtest
nano /etc/hosts
192.168.1.60    www.airsonic.com    
systemctl restart httpd ; systemctl status httpd
www.airsonic.com     | admin/admin
__________________________________________________________________________________________

No comments:

Post a Comment