Install Centova Cast on CentOS and Create a Database

Install Centova Cast on CentOS and Create a Database

This comprehensive guide will take you through the installation of Centova Cast on CentOS 7, followed by crucial steps to configure the MariaDB database, completing the total installation.

What is Centova Cast?

Centova Cast is a web-based control panel designed for managing Internet radio broadcasting. It provides a comprehensive set of tools and features that enable users to automate and streamline the process of running their own Internet radio stations. With Centova Cast, users can manage various aspects of their radio broadcasts, including scheduling, playlist management, listener statistics, and more.

System Requirements for Centova Cast Installation:

Ensure your server meets the following fundamental requirements before proceeding with the installation of Centova Cast.

Supported Operating Systems:

Centova Cast is compatible with the following operating systems:

  • CentOS 5, 6, or 7 (or equivalent RHEL release)
  • Debian Stable

While other operating systems based on CentOS or Debian may theoretically work with Centova Cast, they remain untested and are not officially supported.

Database Server:

Centova Cast requires a MySQL database server, compatible with versions 4.1, 5.0, 5.1, 5.5, or 5.6.

Streaming Server:

Centova Cast supports the following streaming servers:

  • SHOUTcast DNAS v2.x
  • SHOUTcast DNAS v1.9.8
  • IceCast v2.x

Note: This guide outlines the complete installation of Centova software, including Shoutcast2, Liquidsoap, Shoutcast1, Icecast, Icescc, and sctrans2, all with SSL integration. For SSL installation, it’s crucial to point your domain or subdomain to your server’s IP address. This ensures a seamless process, allowing the installation to automatically include free SSL and activate it on the server. Simply direct your domain or subdomain to your server’s IP, and the installation will handle the rest.

Centova Cast Installation:

Step 1: Log in to Your Server via SSH.

Step 2: Run the Installation Script:

wget -O install.sh install.centova.com/LICENSEKEY 

(Replace LICENSEKEY with Your Centova Cast v3 License Key)

Once the script has been downloaded, proceed to make it executable.

chmod a+x ./install.sh
./install.sh --shoutcast2 --liquidsoap --shoutcast1 --icecast --icescc --sctrans2 --secure=yourhostname.com --email=admin@yourhostname.com

Insert your actual domain or subdomain where it says “yourhostname.com” and use your valid email address in place of “admin@yourhostname.com“.

Once the installation is complete, visit http://your-ip:2199/ to finish the setup.

If you opt for a secure (SSL) connection, you can use https://your-ip:2199/ or https:/yourhostname.com. The same port can be utilized for both SSL and non-SSL connections.

The web interface will prompt you to select an admin password and enter the connection details for your MySQL database. Please follow the prompts accordingly.

Setting Up the MySQL Database:

To set up the MySQL database, begin by installing MariaDB. Follow the steps outlined earlier for the MariaDB installation process.

yum install -y mariadb mariadb-server

Enable the service to ensure it starts at boot and start the MariaDB service:

# systemctl enable mariadb
# systemctl start mariadb

Securing Default Installation:

  • After the installation, invoke the secure installation script to guide you through steps to harden your basic installation:
# mysql_secure_installation
  • By default, MariaDB “root” does not have a password. You’ll need to change the root password after the initial installation.
  • When prompted to enter the current password for the root user, simply press “Enter.” This will take you to the next step where you can set a new password for the root user.
  • Answer a series of simple questions to enhance the security of your MariaDB DBMS system. It’s advisable to choose “Yes” (Y) to every question for maximum security unless you are already a MariaDB expert and require specific features.

Testing the Connection to MariaDB Database:

Finally, test if you can connect and log in to the MariaDB service locally using the MariaDB command-line client called mysql:

# mysql -u root -p


Creating a New Database and User in MariaDB:

Once MariaDB is installed and secured, effectively manage your databases using the following steps:

  1. Log in to the MariaDB shell using the administrator user “root” and the password you set during the MariaDB installation:
# mysql -u root -p

2. Create a new database using the provided syntax. Replace “database_name” with your chosen name for the new database:

MariaDB [(none)]> CREATE DATABASE [database_name] CHARACTER SET utf8 COLLATE utf8_general_ci;

Example:

MariaDB [(none)]> CREATE DATABASE tutodb CHARACTER SET utf8 COLLATE utf8_general_ci;
Query OK, 1 row affected (0.00 sec)

Ensure each command ends with a semicolon(;) in the MariaDB shell.

3.Create the database user by replacing “database_name,” “username,” and “password” in the following command:

MariaDB [(none)]> GRANT ALL ON [database_name].* TO '[username]'@'localhost' IDENTIFIED BY '[password]' WITH GRANT OPTION;

Example:

MariaDB [(none)]> GRANT ALL ON tutodb.* TO 'tutouser'@'localhost' IDENTIFIED BY 'tutopassword' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)

4. Ensure MariaDB is aware of your new user:

MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

5. Verify the database name you created by running the “SHOW DATABASES” command:

MariaDB [(none)]> SHOW DATABASES;

Once the database setup is finished, return to your web interface at: https:/yourhostname.com/ Enter the connection information for your MySQL database to proceed.

After completing the entire procedure, Centova Cast will notify you of a successful installation and automatically direct you to the Centova Cast login page.

If your server is using a firewall, refer to the Firewall Configuration before proceeding. Follow the link below:

By following this comprehensive guide from TutoSquad, you ensure a seamless installation and set the stage for a powerful broadcasting experience. Happy streaming!

Heinz Avatar