How VPS - How to use/setup VPS
  • 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
21
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
How VPS

How VPS

Related Posts

Failed to download metadata for repo 'appstream' on Centos 8
CentOS

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

February 25, 2022
How to Install BoltWire CMS on CentOS 7
CentOS

How to Install BoltWire CMS on CentOS 7

February 14, 2020
Showterm.io – A Terminal/Shell Recording, Upload and Share Tool for Linux
CentOS

Setup HTTP Authentication With Nginx on CentOS 7

February 14, 2020
Next Post

Using StrongSwan for IPSec VPN on CentOS 7

How to Install Gitea on CentOS 7

Setup PPTP VPN Server on CentOS 6

Leave a Reply Cancel reply

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

Follow Us

  • 121 Followers
  • 87.2k Followers

Recommended

10 Linux Dig (Domain Information Groper) Commands to Query DNS

How To Monitor Network Traffic in Real Time on CentOS 6

3 years ago

Simple Mailserver With Postfix, Dovecot, And Sieve On Debian 7

3 years ago

How to Make File and Directory Undeletable, Even By Root in Linux

4 years ago

Install HTMLDoc on Debian 9

3 years ago

Instagram

    Please install/update and activate JNews Instagram plugin.

Categories

  • 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

Topics

Apache Web Server Bluehost Review 2019 Bluehost Review 2020 Bluehost Review 2021 Centmin Mod CentminMod centos install htop fsck htop install HTTP DoS attack Install Snort on an Ubuntu install Zabbix on CentOS install Zabbix on CentOS 7 Linux Commands linux guide linux install htop linux vps setup guide MariaDB MariaDB Error Mysql mysqld error optimize MariaDB optimize Mysql snort Ubuntu
No Result
View All Result

Highlights

Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

Webmin Reviews

Virtualmin Reviews

CentOS Web Panel Reviews

Ajenti Reviews

ISPConfig Reviews

Trending

Failed to download metadata for repo 'appstream' on Centos 8
CentOS

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

by How VPS
February 25, 2022
0

I tried to update some extensions by use yum on centOs which I specified in Dockerfile. After...

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
Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

February 17, 2020
Webmin Reviews

Webmin Reviews

February 17, 2020
How VPS – How to use/setup VPS

We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc. Visit our landing page to see all features & demos.
LEARN MORE »

Recent News

  • 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”? November 17, 2020
  • How to optimize Mysql or MariaDB November 3, 2020

Categories

  • 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

[mc4wp_form]

© 2018 JNews - City News Magazine WordPress theme. All rights belong to their respective owners.
JNews is a top selling 2018 WordPress News, Blog, Newspaper & Magazine Theme.

No Result
View All Result
  • Home

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