Thursday, January 27, 2022

How To Install Ampache Streaming Media Server On Rocky Linux 8.5

 in This Tutorial you will learn " How To Install Ampache Streaming Media Server On Rocky Linux 8.5"

Ampache is a free, open-source, and web-based software that allows you to host your own music streaming server. With Ampache, you can access your music and video over the internet. You can view, edit, and play your music via a web browser or any media streaming client.

Features:-
Powerful API and streaming to any client
Flexible catalogs and customization
Modern HTML5 Web Player
Support various authorization methods such as MySQL, LDAP, HTTP and PAM
Compatibility with any Subsonic client                    
Offcial website -https://ampache.org/  | Github - https://github.com/ampache/ampache
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      | IP -192.168.1.60        |Hostname - server.yourdomain.com
_________________________________________________________________________________________
cat /etc/centos-release ; getconf LONG_BIT ; hostname ; hostname -I ; sestatus

dnf module reset php ; dnf -y module install php:7.4
dnf install -y httpd mariadb mariadb-server php php-{bz2,mysqli,curl,gd,intl,common,mbstring,xml,json,bcmath,pear,xmlrpc,snmp,cli,ldap,opcache,pdo}

systemctl enable httpd mariadb ;  systemctl start httpd mariadb
mysql_secure_installation

mkdir -p /var/www/yourdomain.com/public_html
chown -R $USER:$USER /var/www/yourdomain.com ; chmod -R 777 /var/www
nano /etc/httpd/conf.d/yourdomain.com.conf
<VirtualHost *:80>
    ServerName yourdomain.com
    ServerAlias www.yourdomain.com
    DocumentRoot /var/www/yourdomain.com/public_html/public
    <Directory /var/www/yourdomain.com/public_html/public>
        Options -Indexes +FollowSymLinks
        AllowOverride All
    </Directory>
    ErrorLog /var/log/httpd/yourdomain.com-error.log
    CustomLog /var/log/httpd/yourdomain.com-access.log combined
</VirtualHost>

cd /var/www/yourdomain.com/public_html
wget https://github.com/ampache/ampache/releases/download/5.2.0/ampache-5.2.0_all.zip
unzip ampache-5.2.0_all.zip

mysql -u root -p
create database testdb;
create user 'testuser'@'localhost' IDENTIFIED BY 'testpassword';
grant all privileges on testdb.* TO 'testuser'@'localhost';
flush privileges;
exit;

apachectl configtest
echo "192.168.1.60 www.yourdomain.com" >> /etc/hosts
systemctl restart httpd ; systemctl status httpd
www.yourdomain.com
__________________________________________________________________________________________







No comments:

Post a Comment