Serve Your Own Ads Through Revive Adserver Part 1

  • Thu Feb 20 2020
  • Sibtay Shah

Why Serve Your Own Ads?

This is one of my favorite integrations as it allows web platform owners to monetize by serving their own ads. Serving your own ads is different than serving ads from Google;

  • You are in full control of who can advertise on your site
  • You control the priorities, rotation and pricing

If you have a platform with good traffic then this approach could be more profitable for you. Follow these steps to start serving your own Ads through Revive Adserver; a popular opensource Adserver.

Note: This tutorial series guides you through the process of setting up your own Revive Adserver instance using AWS EC2. Revive also provides a hosted version which may be a better fit for some production use cases

1. Provision An EC2 Instance

Provision your favorite ec2 instance. You would need the LAMP stack on it choose an appropiate instance

2. Install Apache And PHP

sudo yum install -y httpd24 php72 php72-mysqlnd

Start the webserver

sudo service httpd start

3. Update Security Group

Update ec2 instance's security group to allow http(s) traffic

At this point make sure that apache is up by entering the instance's DNS name in your browser. Apache's default page should show up

4. Install Revive Adserver

Go back to your terminal and download revive adserver package

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

And then install

tar -xvzf revive-adserver-5.0.4.tar.gz
sudo mv revive-adserver-5.0.4 /var/www/html/revive

5. Install And Configure MySQL

Install MySQL

sudo yum install mysql57-server

Start the server

sudo service mysqld start

And secure the installation

mysql_secure_installation

Login to MySQL CLI

mysql -u root -p

Then from within the CLI setup the database for the ad server

create database revive_adserver;
grant all privileges on revive_adserver.* to 'revive_adserver'@'localhost' identified by '<db-password>';

6. Configure The Adserver

Visit the following link from your browser to start the server setup process

<ec2-instance-dns-name>/revive

Follow the wizard prompts, entering info of the DB that you just created. Once finished your Adserver should be setup. In part 2 of this series I will show how you can create the actual campaigns and start serving ads on your website(s).

Thanks for reading and stay tuned for more content!