How to Install Revive Adserver on Elementary OS

Revive Adserver is a free, open-source ad serving platform that helps publishers and advertisers to manage and display ads on websites, mobile apps, and games. In this tutorial, we will guide you through the steps to install Revive Adserver on Elementary OS.

Prerequisites

Before installing Revive Adserver, you need to have the following prerequisites:

Step 1: Install Apache, PHP, and MySQL

To install Apache, PHP, and MySQL on Elementary OS, run the following commands:

sudo apt update
sudo apt install -y apache2 mysql-server php7.2 php7.2-mysql libapache2-mod-php7.2

Step 2: Configure Database

Next, we need to configure the MySQL database.

First, log into the MySQL shell:

sudo mysql

Once you are in the MySQL shell, create a new database for the Revive Adserver:

CREATE DATABASE adserver;

Then, create a new user and grant the necessary privileges to the new database:

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

Exit the MySQL shell by typing:

exit;

Step 3: Download and Install Revive Adserver

Now that we have installed the required software and configured the database, we can proceed with the Revive Adserver installation.

To download Revive Adserver, navigate to the official website at https://www.revive-adserver.com/ and download the latest stable version. You can use the wget command to download the package:

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

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

tar -xzf revive-adserver-5.1.0.tar.gz

Move the extracted files to the Apache web server root directory:

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

Make the installation directory writable:

sudo chown -R www-data:www-data /var/www/html/revive
sudo chmod -R 755 /var/www/html/revive/var/

Step 4: Navigate to Installation

Open your browser and navigate to the installation page by typing the following URL in the address bar:

http://localhost/revive/www/admin/install.php

The installation page will appear, and you will need to follow the prompts to finish the installation process.

On the first page, select your language and click the "Start" button:

Revive Adserver Installation Page

On the second page, read the system requirements and click the "Next" button:

Revive Adserver Installation Page

On the third page, fill in your MySQL database details and click the "Next" button:

Revive Adserver Installation Page

On the fourth page, set the Administrator email and password, and click the "Next" button:

Revive Adserver Installation Page

On the final page, review your installation settings, click the "Install" button, and wait for the installation to finish:

Revive Adserver Installation Page

Once the installation is complete, you will see a message telling you that the installation was successful. Click the "Next" button to proceed:

Revive Adserver Installation Page

Finally, log in to your Revive Adserver account by clicking the "Log in" button:

Revive Adserver Installation Page

Conclusion

Congratulations! You have successfully installed and configured Revive Adserver on Elementary OS. You can now start managing and displaying ads on your website, mobile app, or game.

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!