Revive Adserver is an open-source ad serving platform that allows users to manage and display online ads on their websites. In this tutorial, we will show you how to install Revive Adserver on an OpenBSD server.
Before we proceed with the installation of Revive Adserver, you will need:
You can download the latest version of Revive Adserver from their official website: https://www.revive-adserver.com/download/.
Use the following command to download the latest version of Revive Adserver on your OpenBSD server:
$ sudo wget https://download.revive-adserver.com/revive-adserver-5.2.0.zip
Now, we need to unzip and extract the downloaded archive. Run the following command to unzip the Revive Adserver archive:
$ sudo unzip revive-adserver-5.2.0.zip
After extracting the archive, we need to move the extracted directory to the Apache web root directory. Use the following command to move the revive adserver directory to /var/www/htdocs/:
$ sudo mv revive-adserver-5.2.0 /var/www/htdocs/
Revive Adserver depends on PHP to run. You need to install the required PHP extensions on your OpenBSD server. Use the following command to install PHP dependencies:
$ sudo pkg_add php-curl php-gd php-mysqli php-xml php-zip
Revive Adserver stores its data in a MySQL or MariaDB database. You need to create a database for Revive Adserver. Connect to your MySQL/MariaDB server using the following command:
$ mysql -u root -p
Create a database for Revive Adserver using the following command:
mysql> CREATE DATABASE revive;
Create a new MySQL user and grant all privileges on the revive database:
mysql> CREATE USER 'reviveuser'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON revive.* TO 'reviveuser'@'localhost';
mysql> FLUSH PRIVILEGES;
Replace password
with a strong password for the MySQL user.
Revive Adserver has a configuration file named config.php
located at /var/www/htdocs/revive-adserver-5.2.0/www/admin/
.
Copy the sample configuration file to a new file named local.conf.php
:
$ sudo cp /var/www/htdocs/revive-adserver-5.2.0/www/admin/plugins/default.conf.php /var/www/htdocs/revive-adserver-5.2.0/www/admin/plugins/local.conf.php
Open local.conf.php
using a text editor:
$ sudo vi /var/www/htdocs/revive-adserver-5.2.0/www/admin/plugins/local.conf.php
Update the database details:
// Database configuration
$config['database']['host'] = 'localhost';
$config['database']['username'] = 'reviveuser';
$config['database']['password'] = 'password';
$config['database']['name'] = 'revive';
$config['database']['table_prefix'] = '';
Replace reviveuser
and password
with the MySQL user and password created in step 5.
Now, we need to run the web installer to set up the Revive Adserver database. Open a web browser and navigate to http://localhost/revive-adserver-5.2.0/www/admin/ to start the installer.
Follow the instructions to complete the installation.
Once the installation is complete, we need to start the Revive Adserver services. Use the following command to start the services:
$ sudo /bin/sh /var/www/htdocs/revive-adserver-5.2.0/start.sh
To start the Revive Adserver services on system startup, add the above command to /etc/rc.local
:
$ sudo vi /etc/rc.local
Add the following line to the rc.local
file:
/bin/sh /var/www/htdocs/revive-adserver-5.2.0/start.sh
Save and close the file.
You have successfully installed and configured Revive Adserver on your OpenBSD server. You can now use the ad management platform to create, manage and display ads on your website.
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!
Alternatively, for the best virtual desktop, try Shells!