Making sure you update Ant Media server is important as it helps you to upgrade your system to leverage new features that may not be available in older or earlier Ant Media versions. This process is very simple and it doesn’t necessarily require you to do any backups. In this article, we will help you to understand everything you need to know so you can easily upgrade your Ant Media server from an earlier edition to the latest release.
RECOMMENDED READING: Solved: Protect Ant Media Streams from getting embedded
SSH into the System
The first step is to log into your server so you can access its terminal. This means that you will need your server’s IP address, username, and password. If you’re not using the SSH password, then you will need to have an SSH private Key with you on your local machine. If you don’t know how to obtain your SSH logins, you may need to contact your VPS provider so they can help you understand the process of obtaining them. In most cases, a reliable VPS provider like Contabo provides a web-based dashboard where you can easily log in to reset the SSH password for your server.
RECOMMENDED READING: How can I install an Open SSH Server on Ubuntu Linux?
Download the latest Ant Media Build
Once you’ve successfully logged in to your server using SSH, you will need to download the latest or the specific Ant Media server build of your choice you want to upgrade to.
Download from the GitHub Repo
If you’re using the free Ant Media community license and you want to upgrade to the latest build, you will need to go to their GitHub repo and find all the Ant Media releases. On the Ant Media Github profile, the latest builds are shown at the top. For example, at the time of this writing, the latest build is Ant Media Community 2.6.2. This means that you will copy the download link of this build and use the wget
command to download the files on your server as seen below;
sudo wget https://github.com/ant-media/Ant-Media-Server/releases/download/ams-v2.6.2/ant-media-server-community-.zip
The above command will download a zip file named: ant-media-server-community-.zip on your system. You need to keep note of the downloaded file name as it will be important in the next steps.
RECOMMENDED READING: How to embed Ant Media Player in WordPress Website
Download from the Ant Media purchase account
This only applies to you if you’re using the Ant Media enterprise edition. The Enterprise edition of the Ant Media software is a paid version that you need to purchase directly from the Ant Media website. All the latest releases will be uploaded to your Ant Media account. And if you want to upgrade, you can always get the download links from there.
To download the Ant Media enterprise file from your purchase account, you will have to right-click on your choice latest build, copy the download link (copy link address), and then use the wget
command to download the file on your server.
Download the Ant Media Installation Script
The Ant Media server installation script you used to do the fresh installation of the software on your server is the same script you’re supposed to use. It’s important to note that the Ant Media installation script is a separate file and it’s different from the ZIP file that contains the Ant Media core files. These two files shouldn’t be confused to be the same thing.
So, the installation script can be obtained by running the following the wget
command;
wget https://raw.githubusercontent.com/ant-media/Scripts/master/install_ant-media-server.sh && chmod 755 install_ant-media-server.sh
The above command will download a script file named install_ant-media-server.sh, and then add chmod
file permission 755
. This means that the installation script will be assigned the permissions that allow the users to read, write, and execute it on the server.
Update Ant Media to the latest
For us to be able to update to the latest or any specific Ant Media server build, it is a must to have the above two files we’ve just downloaded. In other words, you must have downloaded the Ant Media server zip file, containing all the code files that make up the software and also the installation script we will use to execute the update installation process.
As we said before, the names of the Ant Media zip file and installation scripts are important to know to enable us to run the update/ upgrade command. In this example, we’re using the Ant Media community build downloaded as ant-media-server-community-.zip, and the installation script downloaded as install_ant-media-server.sh. And so, we will run the Ant Media update or upgrade command as seen below;
sudo ./install_ant-media-server.sh -i ant-media-server-community-.zip -r true
After executing the above command, wait for the upgrade process to complete and make sure your system is uninterrupted during this process.
RECOMMENDED READING: Solved: Ant Media stream refusing to play after embedding
Control the Ant Media Service
Now that you’ve successfully updated Ant Media server, you will need to check if it’s running by executing the following command;
sudo service antmedia status
If Ant Media is running, you will be able to see something like this as shown in the image below;
If Ant Media server is not running, you can start it by running the following command;
sudo service antmedia start
If you want to stop Ant media, you can run the following command;
sudo service antmedia stop
More Ant Media Server articles to explore
- How to Secure HLS & DASH Streams in Ant Media Server?
- Solved: SSL not installing on Ant Media Server
- How to install an SSL Certificate on Ant Media Server
- How to open Ant Media Ports through the Firewall?
- Solved: Protect Ant Media Streams from getting embedded
- What you need to know before deploying Ant Media in AWS Cluster
- Solved: Ant Media stream refusing to play after embedding
- How to embed Ant Media Player in WordPress Website
- How can I enable Adaptive Bitrate streaming in Ant Media Server?
- How much does Ant Media cost to stream to 1000 viewers on AWS
- How much bandwidth does Ant Media Server need?
- How to Optimize the Performance of Ant Media Server
- Why does my Ant Media stream keep buffering?
- How to secure your Ant Media Livestreams?
- Can I use the ant media community license in a cluster?
- How many Streaming channels can you set up on Ant Media?
- Do I necessarily need a GPU to stream Full HD using Ant Media Server?
- How much computing power do you need for Ant Media Server?
- SOLVED: Your live stream will play automatically as soon as it’s available
More Ubuntu-related articles to explore
- How can I install an Open SSH Server on Ubuntu Linux?
- How to host a Laravel application on Ubuntu using Apache
- How can I update Ant Media Server on Ubuntu?
- How to use Alibaba Cloud Free credit to Set up Ubuntu server
- How to install and configure UFW firewall on Ubuntu Linux
- How to set up Nginx RTMP Server on Ubuntu to Live stream videos
- How can I create FTP User Directory in Ubuntu?
- Step-by-Step Guide to Installing FTP on Ubuntu Server
- How to deploy WordPress on a Ubuntu LAMP Server
- How to deploy a MySQL Server on Ubuntu
- What is the easiest way to install Apache Server on Ubuntu?
- How to configure iptables to secure Apache server on Ubuntu
- How to enable root user on AWS ec2 Ubuntu Linux instance
- How to Install OpenVPN Server on Ubuntu
- How to install a Graphical User Interface on Ubuntu Server
- How to install Ant Media Server on Ubuntu Linux Server
- How to Dual Boot Kali Linux and Windows on a Laptop
- How to Install WordPress on a VPS Server using Cloudron?
- How to use the apt command in Linux | Syntaxes & Examples
- Is deploying and managing a VPS server hard?