Revive Adserver is an open-source ad serving platform that helps publishers and advertisers manage their online advertising campaigns. In this tutorial, we will guide you on how to install Revive Adserver on the latest version of Fedora Server.
Before starting the installation process, make sure that your Fedora Server is up-to-date and meets the following requirements:
To install Revive Adserver, we need to install some required packages. Open the terminal and run the following command to update the package list:
sudo dnf update
Then, install the required packages using the following command:
sudo dnf install -y wget unzip httpd mariadb-server php php-mysqli php-xml php-mbstring php-gd php-intl php-zip
Next, we need to configure MariaDB for Revive Adserver. Start by enabling the MariaDB service on boot:
sudo systemctl enable mariadb
Then, start the MariaDB service using the following command:
sudo systemctl start mariadb
Now, secure your MariaDB installation by running the following command:
sudo mysql_secure_installation
Follow the on-screen prompts to set up a secure MariaDB root account. A quick recommendation is to set a strong root password and remove the anonymous user.
Let's download the latest version of Revive Adserver from the official website using the following command:
sudo wget https://download.revive-adserver.com/revive-adserver-5.1.0.zip
Then, extract the downloaded file using the following command:
sudo unzip revive-adserver-5.1.0.zip
Let's move the extracted files to the webserver root directory:
sudo mv revive-adserver-5.1.0/ /var/www/html/revive-adserver/
To create a new database and user for Revive Adserver, run the following command:
sudo mysql -u root -p
Enter your root password when prompted. Then, run the following commands to create a new database and a user for Revive Adserver.
CREATE DATABASE revive CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'revive'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON revive.* TO 'revive'@'localhost';
FLUSH PRIVILEGES;
exit;
Note: Replace 'password' with a strong password.
Before we proceed with the configuration, change the ownership of the Revive Adserver directory to the webserver user:
sudo chown -R apache:apache /var/www/html/revive-adserver/
Now, we need to edit the Revive Adserver configuration file. Run the following command to open the configuration file using a text editor:
sudo nano /var/www/html/revive-adserver/etc/revive.conf.php
Make the following changes:
'host' => 'localhost',
'dbname' => 'revive',
'dbuser' => 'revive',
'dbpass' => 'password',
Save and close the file.
By default, Fedora Server will block incoming HTTP traffic. You need to open the firewall for HTTP using the following command:
sudo firewall-cmd --zone=public --add-service=http --permanent
sudo firewall-cmd --reload
Finally, restart the webserver to apply the changes:
sudo systemctl restart httpd
Open your web browser and enter the following URL:
http://YOUR_IP_ADDRESS/revive-adserver/
Replace "YOUR_IP_ADDRESS" with your Fedora Server's IP address.
You will be redirected to the Revive Adserver installation wizard. Follow the instructions to complete the installation.
Congratulations! You have successfully installed Revive Adserver on the latest version of Fedora Server. It's time to start managing your online ad campaigns effectively.
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!