How to Install Revive Adserver on Debian Latest

In this tutorial, we will guide you through the process of installing Revive Adserver on Debian Latest. Revive Adserver is an open-source ad management platform that allows publishers to manage their ads and optimize their advertising revenue.

Prerequisites

Before you can install Revive Adserver on Debian Latest, you must meet the following prerequisites:

To install these prerequisites, run the following command:

sudo apt-get update
sudo apt-get install apache2 php7.1 libapache2-mod-php7.1 php7.1-mbstring php7.1-xml php7.1-json php7.1-gd php7.1-mysql

Step 1: Download Revive Adserver

Start by downloading the latest version of Revive Adserver from their official website:

wget https://download.revive-adserver.com/revive-adserver-5.0.5.tar.gz

Extract the downloaded file with the following command:

tar -xzf revive-adserver-5.0.5.tar.gz

The extracted files will be stored in a new directory called "revive-adserver-5.0.5".

Step 2: Set Permissions

Next, set appropriate permissions for the Revive Adserver files:

cd revive-adserver-5.0.5/
sudo chown -R www-data:www-data .
sudo chmod -R 755 .

Step 3: Install MySQL

Revive Adserver requires a MySQL database to store the ad data. Install MySQL with the following command:

sudo apt-get install mysql-server

During the installation process, you will be prompted to create a new root password for the MySQL server.

Step 4: Create a MySQL Database

After installing MySQL, create a new database for Revive Adserver with the following command:

mysql -u root -p

Enter your MySQL root password when prompted.

CREATE DATABASE revive_db;
GRANT ALL PRIVILEGES ON revive_db.* TO 'revive_user'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
EXIT;

Change "revive_user" and "password" to your desired username and password.

Step 5: Configure Apache

Create a new virtual host configuration file for Revive Adserver with the following command:

sudo nano /etc/apache2/sites-available/revive.conf

Add the following configuration to the file:

<VirtualHost *:80>
    ServerName example.com # Change this to your domain name
    DocumentRoot /var/www/html/revive-adserver-5.0.5/www

    <Directory /var/www/html/revive-adserver-5.0.5/www>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/revive_error.log
    CustomLog ${APACHE_LOG_DIR}/revive_access.log combined
</VirtualHost>

Save and exit the file.

Enable the virtual host and rewrite module with the following commands:

sudo a2ensite revive.conf
sudo a2enmod rewrite

Restart Apache with the following command:

sudo systemctl restart apache2

Step 6: Install Revive Adserver

Open your web browser and navigate to your server's domain name. You should see the Revive Adserver installation wizard.

Follow the wizard's instructions to complete the installation. When prompted for the database settings, enter the following:

After completing the installation, remove the "install" directory with the following command:

sudo rm -rf /var/www/html/revive-adserver-5.0.5/www/install/

Conclusion

Congratulations! You have successfully installed Revive Adserver on Debian Latest. You can now start using Revive Adserver to manage and optimize your ads.

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!