Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save parallaxhub/ffb944359ad923d0f44f7312ea2b80a0 to your computer and use it in GitHub Desktop.
Save parallaxhub/ffb944359ad923d0f44f7312ea2b80a0 to your computer and use it in GitHub Desktop.
Install Revive-Adserver 5.3.1 on Ubuntu 20.04
# STEP-1: Update your system
apt update
apt upgrade
# STEP-2: Install Apache web server
apt install apache2
apache2 -v
service apache2 stop
service apache2 start
systemctl enable apache2
systemctl status apache2
# STEP-3: Install Mysql Database server
apt install mysql-server
systemctl stop mysql.service
systemctl start mysql.service
systemctl enable mysql.service
mysql --version
systemctl status mysql.service
exit;
# STEP-4: Download and Install PHP and other depebdencies
apt install php7.4 libapache2-mod-php php7.4-mbstring libpcre3 libpcre3-dev php7.4-xml php7.4-zip zlib1g zlib1g-dev php7.4-curl openssl php7.4-gd php-opcach
# # STEP-5: Download Revive Adserver Latest Stable Version 5.3.1
# Download Latest Stable Revive-adserver zip file from: https://www.revive-adserver.com/download/
cd /home/jj/Downloads/
ls
unzip revive-adserver-5.3.1.zip
# STEP-6: Configure PHP file for revive adserver installation
cd /etc/php/7.4/apache2/
nano php.ini
# Modifiedd the below lines:
file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360
# Save and exit
# STEP-7: Configure Apache web server for web version
cd /etc/apache2/sites-available
nano revive.conf
# Paste the below configuration docs:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName example.com
DocumentRoot /var/www/html/adserver
ErrorLog ${APACHE_LOG_DIR}/adserver-error.log
CustomLog ${APACHE_LOG_DIR}/dserver-access.log combined
<Directory /var/www/html/adserver>
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
# Save and exit
# STEP-8: Give Permission to web-root files
chown -R www-data:www-data /var/www/html/adserver
# Allow Apche configuration file
a2dissite 000-default
systemctl reload apache2
systemctl restart apache2
a2ensite revive.conf
systemctl reload apache2
systemctl restart apache2
a2enmod rewrite
systemctl restart apache2
@parallaxhub
Copy link
Author

Screenshot from 2022-03-22 15-40-21
Screenshot from 2022-03-22 15-40-32
Screenshot from 2022-03-22 15-59-48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment