Installation
This page tells you how to install Centova Cast on a new server with the standard settings. If you must change the installation directory, the ports or the TLS certificate, read the Installer Options section before you start.
This procedure applies to a new server. If Centova Cast v3 is installed on the server, read the Migrating from Centova Cast v3 section instead. If a web hosting control panel (for example cPanel or Plesk) is installed on the server, read the Other Control Panels section first.
Before You Start
Make sure that:
- The server meets the System Requirements.
- You have a Centova Cast license key.
- The hostname for the control panel (for example
cast.example.com) points to the IP address of the server in DNS. - Port 80 of the server is reachable from the Internet, and no other web server uses it.
The last two conditions are necessary for the free Let's Encrypt certificate. For more information, see the TLS Certificates section.
You must be logged in as root to run the installer. If you are not, the installer stops with the message
This installer must be run as root.
Step 1: Download the Installer
Download the installation script and make it executable:
wget -O install.sh https://install.centova.com/LICENSEKEY
chmod a+x ./install.sh
Replace LICENSEKEY with your Centova Cast license key. The download server writes your license key into the
script, so you do not give the key to the installer again.
Step 2: Run the Installer
Run the installer with the hostname of the control panel and the email address of the administrator:
./install.sh --hostname=cast.example.com --email=admin@example.com
Replace cast.example.com with the hostname of your control panel. Replace admin@example.com with the email
address that receives the administrator notifications. Let's Encrypt also uses this address for the certificate,
unless you give another address with --le-email.
The installer then does these steps:
- It downloads the Centova Cast package and installs it in
/usr/local/centovacast. - It creates the system users
centovacast,ccuserandccui, and the system groupccsock. - It generates new Diffie-Hellman parameters. This step can take some minutes.
- It creates the database and the administrator account
admin. - It tests the DNS configuration of the hostname and gets a TLS certificate from Let's Encrypt.
- It installs the system services and a cron job (
/etc/cron.d/centovacast-v4), and starts Centova Cast. - It adds firewall rules for the Centova Cast ports, if it can. For more information, see the Ports and Firewall section.
If one of the steps fails, the installer shows an error message and stops. If the failure occurs after step 1, the installer removes the incomplete database and configuration file. Correct the problem and run the installer again.
If Centova Cast is already installed on the server, the installer stops with the message
Centova Cast files already exist on this server. To upgrade an existing installation, see the
Upgrading Centova Cast section.
The Administrator Password
If you do not give a password, the installer generates a password for the admin account. It shows the password
once, after the line Your new administrator password is:. Centova Cast does not record the password in any other
place. Write it down before you continue.
To set the password yourself, use the --password option. The password must have at least 6 characters. A password
on the command line is visible in the process list and in the shell history. To prevent this, put the password in
the CC_ADMIN_PASSWORD environment variable instead:
read -rs CC_ADMIN_PASSWORD
export CC_ADMIN_PASSWORD
./install.sh --hostname=cast.example.com --email=admin@example.com
Step 3: Install the Streaming Software
When the installation is complete, the installer shows a list of the streaming software packages. Install at least one streaming server and one autoDJ program before you create accounts. For example:
/usr/local/centovacast/sbin/install icecast
/usr/local/centovacast/sbin/install centovasrc
For the list of packages and more information, see the Streaming Software section.
Step 4: Log In and Finish the Configuration
Open the control panel in your web browser at https://cast.example.com/ (replace cast.example.com with your
hostname). If you installed with --no-webports, use https://cast.example.com:2199/. If you installed with
--ports, use the HTTPS port that you gave.
Log in with the username admin and the administrator password from step 2.
At the first login, Centova Cast shows the Welcome to Centova Cast page. This page asks you to review the main settings of the server. The page has two boxes.
The Site box has these fields:
Site name
Specifies the name of your hosting service. The default is the hostname of the control panel.Notification email address
Specifies the email address that receives the administrative notices. The default is the address from the--emailoption.Locale
Specifies the language and regional format of the control panel. The default is the locale of the server.Sender email address
Specifies the return address of all of the email messages that Centova Cast sends. The default is the address from the--emailoption.Time zone
Specifies the time zone of the server. The page selects the time zone of your web browser. If the web browser does not report a time zone, the default is the time zone of the operating system. If Centova Cast does not recognize the time zone of the operating system, this default isUTC.Logo
Specifies an optional logo image. The navigation menu shows the logo. Centova Cast converts the logo to a PNG image of 153x45 pixels or less. A logo wider than 45 pixels replaces the site name in the navigation menu.
The Mail Server box has these fields:
SMTP server hostname
Specifies the hostname of the mail server that Centova Cast uses to send email. If this field is empty, Centova Cast sends no email.SMTP port
Specifies the port of the mail server. This field is necessary if you give an SMTP server hostname.SMTP security
Specifies how Centova Cast connects to the mail server. The options are:TLS
Centova Cast connects to the mail server with TLS.Disabled
Centova Cast connects without TLS. If the mail server supports STARTTLS, Centova Cast uses it.
SMTP username
Specifies the username for the mail server, if the mail server requires authentication. If you give a username, you must also give a password.SMTP password
Specifies the password for the mail server. If you give a password, you must also give a username.
To send a test message, click Test Mail. If you changed a field, Centova Cast asks if it must save the changes
first. Click Yes, save and test to save the changes and send the test message. Click No, test old settings to
test the saved settings. Centova Cast sends the test message to the notification email address.
When the settings are correct, click Save. Centova Cast then shows the Installation Complete page. This page has
links to the Settings page, to the Centova Cast support resources, and the Continue to Centova Cast button.
Click Continue to Centova Cast to open the control panel.
Note: The Welcome to Centova Cast page is shown only until you save it once. After that, you change these settings on the Settings page. The Administration Manual describes all of the settings.