• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Friday, May 9, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System CentOS

Installing Revive Adserver on CentOS 7

How VPS by How VPS
October 1, 2019
in CentOS
0
0
SHARES
27
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Prerequisites
  2. Step 1: Update the system using YUM
  3. Step 2: Install and configure Apache
  4. Step 3: Install MariaDB and then create a database for Revive Adserver
  5. Step 4: Install PHP 5.6 and necessary extensions
  6. Step 5: Download the Revive Adserver archive
  7. Step 6: Finish the installation in your browser
  8. Want to contribute?


Revive Adserver is a free and open source ad serving system which can be used to manage ads on websites, in apps, and/or in video players.

In this article, I will introduce you to the whole process of installing Revive Adserver on a Vultr CentOS 7 server instance.

Prerequisites

Before moving on, you need to:

  • Deploy a Vultr CentOS 7 server instance from scratch.
  • Create a sudo non-root user and then use it to log in your CentOS 7 system from your SSH terminal. You can learn about how to create such a user in another Vultr article.

Step 1: Update the system using YUM

One of system administrators’ best practices is always updating the system to the latest stable status:

sudo yum update
sudo reboot

After the reboot, use the sudo user to log into the system again.

Revive Adserver needs the LAMP stack to operate properly. In the following sections, you need to deploy Apache, MariaDB, and PHP one by one.

Step 2: Install and configure Apache

Install Apache using YUM:

sudo yum install httpd
sudo systemctl start httpd.service
sudo systemctl enable httpd.service

Prevent Apache from displaying the default welcome page:

sudo sed -i 's/^/#&/g' /etc/httpd/conf.d/welcome.conf

Prohibit Apache from displaying files in the /var/www/html directory:

sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/httpd/conf/httpd.conf

Setup a virtual host for Revive Adserver:

sudo vi /etc/httpd/conf.d/adserver.conf

Populate the file with the following configurations. Be sure to replace the those user-specific parameters with your own ones.

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/adserver/
ServerName adserver.xxx.com
ServerAlias www.adserver.xxx.com
<Directory /var/www/html/adserver/>
Options FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/adserver.xxx.com-error_log
CustomLog /var/log/httpd/adserver.xxx.com-access_log common
</VirtualHost>

Save and quit:

:wq

Meanwhile, in order to accept users’ visit, you need to modify the firewall rules to allow inbound http traffic:

sudo firewall-cmd --zone=public --permanent --add-service=http
sudo firewall-cmd --reload

Step 3: Install MariaDB and then create a database for Revive Adserver

Install MariaDB with YUM:

sudo yum install mariadb mariadb-server
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service

Perform the secure MySQL installation:

sudo /usr/bin/mysql_secure_installation

Finish this process according to the following instructions:

Enter current password for root (enter for none): click the Enter key
Set root password? [Y/n]: Input Y, then click the Enter key
New password: Input a new root password, then click the Enter key
Re-enter new password: Input the password again, then click the Enter key
Remove anonymous users? [Y/n]: Input Y, then click the Enter key
Disallow root login remotely? [Y/n]: Input Y, then click the Enter key
Remove test database and access to it? [Y/n]: Input Y, then click the Enter key
Reload privilege tables now? [Y/n]: Input Y, then click the Enter key

Open the MySQL shell as root:

mysql -u root -p

Input the MariaDB root password you set earlier to log in.

In the MySQL shell, execute the following commands to create a database for Revive Adserver. Remember to replace the database name “adserver”, the database username “adserveruser”, and the database user password “yourpassword” with your own ones.

CREATE DATABASE adserver;
CREATE USER 'adseveruser'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON adserver.* TO 'adserveruser'@'localhost';
GRANT ALL PRIVILEGES ON adserver.* TO 'adserveruser'@'localhost' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;

Step 4: Install PHP 5.6 and necessary extensions

With the default YUM repos, you can only install an unqualified version of PHP (5.4.16) on your server. You need to add a third-party YUM repo source (for example, the IUS repo) into your system to solve the problem:

cd ~
wget https://centos7.iuscommunity.org/ius-release.rpm
sudo rpm -Uvh ius-release.rpm

Install qualified PHP and necessary extensions, such as PHP 5.6:

sudo yum install php56u.x86_64 php56u-gd.x86_64 php56u-mysqlnd.x86_64 php56u-mbstring.x86_64 php56u-xml.x86_64 php56u-opcache.x86_64

Put all your changes into effect:

sudo systemctl restart httpd mariadb

Step 5: Download the Revive Adserver archive

As of writing, the latest version of Revive Adserver is 3.2.4. You can always find the latest download URL on the Revive Adserver official website.

cd ~
wget https://download.revive-adserver.com/revive-adserver-3.2.4.tar.gz
tar -zxvf revive-adserver-3.2.4.tar.gz
mv revive-adserver-3.2.4/ adserver/
sudo chown -R apache: adserver/
sudo mv adserver/ /var/www/html/

Step 6: Finish the installation in your browser

Visit your Vultr server using a web browser:

http://[your-server-IP]

On the “Welcome” page, click the “I Agree >>” button. Then the installation wizard program will execute a system check.

After the system check you will get into the “Database” page. Input the database name, database username, and database password you specified earlier and leave other fields untouched. Then, click the “Continue >>” button.

On the “Configuration” page, input administrator username, administrator password, and administrator email address; adjust language and timezone as you wish; and leave other fields untouched. Then click the “Continue >>” button.

On the “Finish” page, click the “Continue >>” button to finish the installation.

That’s it. Now you can manage ads in the Revive Adserver system.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

How to Install DreamFactory Open Source on CentOS 7

Next Post

Using StrongSwan for IPSec VPN on CentOS 7

Next Post

Using StrongSwan for IPSec VPN on CentOS 7

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet