For a while (really FOREVER), I've been amazed by ad-servers and whenever I stumbled upon one or many...I install them. In this scenario, I've been a huge fan and follower of the Revive Adserver (previously OpenX) community.
As stated above, Revive Adserver is an open-source, and community maintained codebase. They recently released v5.0.x and it has apparently significant changes (note the major version update). See the https://www.revive-adserver.com/blog/revive-adserver-v5-0-released/ to learn more about the release.
The installation process was pretty easy:
I used CentOS v7 and yum package manager across the board.
Install PHP - v7.4
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
Use utils to manage the configuration:
yum -y install yum-utils
yum-config-manager --enable remi-php74
Install the necessary packages:
yum -y install php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json
PHP updates:
Find the PHP ini file to update to recommended limits (either one of the below will find the location and output to the console:
php -i | grep 'php.ini'
php --ini
Update to the following values:
upload_max_filesize = 720M
post_max_size = 64M
memory_limit = 1024M
max_execution_time = 180
After doing the above, it should be pretty straightforward.
Install MySQL / MariaDB & set up the db.
yum -y install mariadb mariadb-server
systemctl start mariadb.service
systemctl enable mariadb.service
run through the mysql installation process:
mysql_secure_installation
Create the database, the user, and allow user access to the database.
CREATE DATABASE revive_adserver_5;
CREATE USER 'aduser'@'localhost' IDENTIFIED BY 'insert-password-here';
GRANT ALL PRIVILEGES ON revive_adserver_5.* TO 'aduser'@'localhost';
GRANT ALL PRIVILEGES ON revive_adserver_5.* TO 'aduser'@'localhost' IDENTIFIED BY 'insert-password-here' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
Remember to update folder permissions:
chown -R apache:apache /var/www/
Create the necessary apache configuration file:
<VirtualHost *:80>
ServerAdmin insert-email-here
DocumentRoot "/var/www/html/revive-server"
ServerName xxx-xxx-xxx
ServerAlias xxx-xxx-xxx
<Directory "/var/www/html/revive-server">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
ErrorLog "/var/log/httpd/revive-server-error_log"
CustomLog "/var/log/httpd/revive-server-access_log" combined
</VirtualHost>
Navigate to:
IP address or www.domain.com/revive-server to start the installation process