How to Install Revive Adserver on Ubuntu Server

Revive Adserver is a free, open-source ad server designed to help website owners monetize their online content. In this tutorial, we will show you how to install Revive Adserver on Ubuntu Server.

Prerequisites

Step 1: Update Ubuntu System

Before proceeding, make sure you have updated the Ubuntu server to the latest version using the following command:

sudo apt-get update
sudo apt-get upgrade

Step 2: Install Apache or Nginx

Revive Adserver requires a web server installed on the Ubuntu server. In this tutorial, we will use Apache web server. To install Apache, run the following command:

sudo apt-get install apache2

After installing Apache, you can check if it's running by opening your web browser and entering your server IP address in the address bar. If Apache is installed correctly, you should see a default Apache webpage.

Step 3: Install PHP

Revive Adserver is written in PHP, so you need to install PHP on your Ubuntu server. To install PHP, run the following command:

sudo apt-get install php php-mysql php-gd php-xml php-mbstring

After installing PHP, you need to restart Apache to apply the changes using the following command:

sudo systemctl restart apache2

Step 4: Install MySQL or MariaDB

Revive Adserver stores its data in a database, so you need to install MySQL or MariaDB on your Ubuntu server. To install MariaDB, run the following command:

sudo apt-get install mariadb-server

After installing MariaDB, you should secure the installation by running the following command:

sudo mysql_secure_installation

Step 5: Create a Database for Revive Adserver

After installing MySQL or MariaDB, you need to create a database and user for Revive Adserver. To create a database, login to the MariaDB console using the following command:

sudo mysql -u root -p

Next, create a database and user with the following commands:

CREATE DATABASE reviveserver;
CREATE USER 'reviveuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON reviveserver.* TO 'reviveuser'@'localhost';
FLUSH PRIVILEGES;
exit

Step 6: Download and Install Revive Adserver

Next, you need to download the latest version of Revive Adserver to your Ubuntu server. To download the package, run the following command:

cd /tmp
wget https://download.revive-adserver.com/revive-adserver-5.2.0.tar.gz

After downloading the package, extract it using the following command:

tar -xvf revive-adserver-5.2.0.tar.gz

Next, move the extracted files to the Apache web directory using the following command:

sudo mv revive-adserver-5.2.0 /var/www/html/

After moving the files, navigate to the installation page by accessing the following URL in your web browser:

http://your_server_IP/revive-adserver-5.2.0/www/admin/install.php

You should see the installation wizard for Revive Adserver. Follow the instructions and enter your database details to complete the installation.

Step 7: Configure Revive Adserver

After installing Revive Adserver, you can access the administration panel by navigating to:

http://your_server_IP/revive-adserver-5.2.0/www/admin/

Here, you can create ad campaigns, zones, and set up targeting options.

Conclusion

In this tutorial, we showed you how to install Revive Adserver on Ubuntu Server. By following these steps, you can monetize your online content and manage all your banners ads in one place.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!