Ugacomp

How can I update Ant Media Server on Ubuntu?

Where necessary, you may need to have access to a VPS server so you can follow how to implement the steps in this article.  You can get a cheaper VPS Server from Contabo with 4vCPU cores, 8GM RAM, and 32TB Bandwidth for less than $5.50 per month. Get this deal here now

Table of Contents

Cloud VPS S

$5.50 Monthly
  • 4 vCPU Cores | 8GB RAM

CLOUD VPS M

$15.50 Monthly
  • 6 vCPU Cores | 16GB RAM

CLOUD VPS L

$17.50 Monthly
  • 8 vCPU Cores | 24GB RAM

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;

How can I update Ant Media Server on Ubuntu?

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

More Ubuntu-related articles to explore

Hire us to handle what you want

Hire us through our Fiverr Profile and leave all the complicated & technical stuff to us. Here are some of the things we can do for you:

  • Website migration, troubleshooting, and maintenance.
  • Server & application deployment, scaling, troubleshooting, and maintenance
  • Deployment of Kubernetes, Docker, Cloudron, Ant Media, Apache, Nginx,  OpenVPN, cPanel, WHMCS, WordPress, and more
  • Everything you need on AWS, IBM Cloud, GCP, Azure, Oracle Cloud, Alibaba Cloud, Linode, Contabo, DigitalOcean, Ionos, Vultr, GoDaddy, HostGator, Namecheap, DreamHost, and more.
 

We will design, configure, deploy, or troubleshoot anything you want. Starting from $10, we will get your job done in the shortest time possible. Your payment is safe with Fiverr as we will only be paid once your project is completed.