How to Install Revive Adserver on Linux Mint

Revive Adserver is an open-source advertising server that allows you to create, manage, and track the performance of advertising campaigns. In this tutorial, we will guide you through the steps to install Revive Adserver on Linux Mint.

Prerequisites

Before we start, make sure that you have the following prerequisites installed on your system:

Step 1: Installing Apache

Apache is a popular web server software used to host websites. To install Apache on Linux Mint, run the following command in the terminal:

sudo apt update
sudo apt install apache2

After installing Apache, you can start and enable it to run at boot time using the following command:

sudo systemctl start apache2
sudo systemctl enable apache2

Step 2: Installing PHP

Revive Adserver requires PHP version 7.0 or above to run. To install PHP, run the following command in the terminal:

sudo apt install php libapache2-mod-php php-mysql

After installing PHP, restart Apache using the following command:

sudo systemctl restart apache2

You can verify the PHP installation by creating a phpinfo.php file in the web root directory for Apache:

sudo nano /var/www/html/phpinfo.php

Add the following content to the file and save it:

<?php
phpinfo();
?>

Now, open your web browser and navigate to http://your_ip_address/phpinfo.php. You should see a page displaying information about your PHP installation.

Step 3: Installing MySQL/MariaDB

Revive Adserver requires a database to store its data. We will use MySQL or MariaDB for this tutorial. To install MySQL or MariaDB, run the following command in the terminal:

sudo apt install mysql-server

During the installation, you will be prompted to set a root user password. Make sure to set a strong password and remember it as we will need it later.

After installing, start the MySQL server and enable it to run at boot time using the following command:

sudo systemctl start mysql
sudo systemctl enable mysql

Step 4: Downloading and Installing Revive Adserver

To download Revive Adserver, visit the official website at https://www.revive-adserver.com/download/. You can download the latest stable release in ZIP format.

After downloading, extract the contents of the ZIP file to a directory under the web root directory for Apache:

sudo mkdir /var/www/html/revive
sudo unzip revive-adserver-5.2.0.zip -d /var/www/html/revive
sudo chown -R www-data:www-data /var/www/html/revive

Change the directory to the revive subdirectory:

cd /var/www/html/revive

Now, create a database and user for Revive Adserver to use:

sudo mysql -u root -p

CREATE DATABASE revive;
CREATE USER 'reviveuser'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON revive.* TO 'reviveuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Replace your_password with a strong password of your choice.

Step 5: Running the Installation Script

To run the installation script for Revive Adserver, open your web browser and navigate to http://your_ip_address/revive. You should see the installation wizard page.

Follow the prompts and enter the database connection details when prompted. The default database prefix is rv_. Make sure to set a strong password for the admin user when prompted.

After completing the installation, you should be logged in to the Revive Adserver dashboard.

Conclusion

Congratulations! You have successfully installed Revive Adserver on Linux Mint. You can now create and manage ad campaigns using the dashboard interface.

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!