Install Revive adserver on Ubuntu 14.04 LTS

The tutorial will explain, how to install the Reviev Adserver on Ubuntu 14.04 LTS. Revive adserver is free Open Source Ad Server formerly known as OpenX Source . Generally the servers are used by many website and blogs.

Revive AdServer has following features –

  • Serve ads on websites, in apps, and in video players, and collect detailed statistics about impressions, clicks and conversions
  • Manage campaigns for multiple advertisers and from ad networks all at once, via an easy to use interface
  • Define rules for delivery of campaigns and ads, including frequency capping, URL targeting, geo-targeting
  • Track and report campaign performance, including click-through rates, conversion rates, revenue, eCPM and conversion details, like basket value and number of items purchased

Follow the steps to install Revive Adserver

Step 1 :Install Web Server, Database Server and PHP

Login into you Ubuntu server and install following packages

Web Server = Apache
Database Server = MySQL Server (mysql-server-5.6)
PHP = PHP and dependencies
unzip = For unzip command

sudo apt-get install apache2 mysql-server-5.6 php5 php5-mysql unzip

In between of installation, you will get to set root’s password for MySQL server. Set the password.

Restart the Apache and MySQL Server

sudo service apache2 restart
sudo service mysql restart

Step 2 : Download the Revive Adserver package

Download latest Revive Adserver package from its website link.

http://www.revive-adserver.com/download/

At the time of writing this post Revive-Adserver-3.1 was latest stable package.

wget http://download.revive-adserver.com/revive-adserver-3.1.0.zip

Unzip the package which you have downloaded.

unzip revive-adserver-3.1.0.zip

Move the extracted out package to /var/www/html/. With mv command you can move as well rename the directory/file. Hence we renamed it to adserver and placed inside /var/www/html/ .

mv revive-adserver-3.1.0 /var/www/html/adserver

Step 3 :Set database and Database user for Revive Adserver

Login into MySQL Server . Give root password which you have set in Step 1.

mysql -u root -p

Run below given commands in mysql server.


create database adserver;

create user 'aduser'@'localhost' IDENTIFIED BY 'give-your-password';

grant all on adserver.* to 'aduser'@'localhost';

flush privileges;

exit;

Step 4 :Configure Apache Web Server

Here we believe you have already purchased the domain (from well reputed domain registrar like
GoDaddy, Namecheap, bigrock etc )

Replace example.com with your domain name in ServerName parameter.

Create new apache config file.

vi /etc/apache2/sites-enabled/revive.conf

Paste the given below contents in revive.conf file.



	ServerAdmin webmaster@localhost
        ServerName example.com
	DocumentRoot /var/www/html/adserver

	ErrorLog ${APACHE_LOG_DIR}/adserver-error.log
	CustomLog ${APACHE_LOG_DIR}/dserver-access.log combined


  AllowOverride All
  Require all granted


Restart the Apache Web Server

sudo service apache2 restart

Step 5: Install through Web Browser

Installation through web server is quite easy.You have to open the web browser (example firefox/chrome etc.) and type the Server URL or DNS address. Here, we have used example.com .You can replace with domain name which you have set in Setp 4 .

1. Open your domain dns address in web browser. For eg. example.com. The first page is about GNU public license agreement. Click on “I Agree” button after reading the content.

adserver-1

2. In next page , you have to fill the Database related information.
As per this tutorial this would be –

Database Name = adserver
Username = aduser
Password = As you have set
Database Hostname = localhost

adserver3

3. Set the Revive Server Administrator password and details.

adserver4

4. Next page will show installing Revive Adserver. It will take some time, just wait.

adserver5

5. And in next page you will be login with administrator in Revive Adserver.

adserver6

Now, we have completed with our setup. You can work on your own Adserver. Explore more , it is really awesome Open Source and free Adserver.

3 thoughts on “Install Revive adserver on Ubuntu 14.04 LTS”

  1. This tutorial started out very good and then when it gets to configure apache web server it falls hard. At least tell people what conf file to go to. It would be easy enough to do.

Comments are closed.