In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install Revive Adserver under Linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Revive Adserver is a free and open source LAMP-based advertising management system that enables publishers, advertising platforms and advertisers to place and manage ads on web pages, applications, and videos. Revive Adserver can localize ads, thus preventing ads from being blocked.
@ revive-adserver1. Install LAMP
First, Revive Adserver needs a complete LAMP environment to run, so let's install LAMP first. LAMP is a collection of Apache web servers, MySQL/MariaDB databases and PHP modules. For Revive to work properly, you need to install many modules of PHP, such as apc, zlib, xml, pcre, mysql and mbstring. We can configure LAMP with the following command:
# yum install httpd mariadb php php-gd php-mysql php-curl php-mbstring php-xml php-apc zlibc zlib1g zlib1g-dev libpcre3 libpcre3-dev zip2. Start the Apache Web and MariaDB services
You can start the newly installed Apache Web service and MariaDB database service with the following command.
# systemctl start httpd mariadbln-s'/ usr/lib/systemd/system/httpd.service''/ etc/systemd/system/multi-user.target.wants/httpd.service'ln-s'/ usr/lib/systemd/system/mariadb.service''/ etc/systemd/system/multi-user.target.wants/mariadb.service'3. Configure MariaDB
When we first started MariaDB, MariaDB didn't assign a password, so set a root password first. Then create a new database to store Revive Adserver data.
Use the following command to configure MariaDB and set its root password:
# mysql_secure_installation
At this time, we will be asked to enter the root password, but we have not set any password before, so press enter next. After that, we are asked to set the root password, and then we enter Y and then enter the password we want. Enter and proceed to the next step.
... So you should just press enter here.Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MariaDBroot user without the proper authorisation.Set root password? [YBO] yNew password:Re-enter new password:Password updated fulfilling Reloading privilege tables..... Success!... Installation should now be secure.Thanks for using MariaDB! Install the advertising server Revive Adserver on CentOS 7 and install the advertising server Revive Adserver4. 7 on CentOS 7. Create a new database
Once you have set a password for root users of MariaDB, you can create a database to store Revive Adserver application data. First log in to the MariaDB console with the following command:
# mysql-u root-p
At this point, you are required to enter the password of the root user. All we have to do is enter the password set in the previous step. Then go to the MariaDB console to create a new database, database users and their passwords, and grant them full permissions to create, delete, edit, and store tables and data.
> CREATE DATABASE revivedb; > CREATE USER 'reviveuser'@'localhost' IDENTIFIED BY' Pa$$worD123'; > GRANT ALL PRIVILEGES ON revivedb.* TO 'reviveuser'@'localhost'; > FLUSH PRIVILEGES; > EXIT; install Advertising Server Revive Adserver on CentOS 7 install Advertising Server Revive Adserver on CentOS 7
5. Download Revive Adserver
Next, download the latest version of Revive Adserver, Revive Adserver.3.2.2 (at the time of this writing). You can use the wget command to download the package from the official Revive Adserverde website at http://www.revive-adserver.com/download/. The command is as follows:
# cd / tmp/# wget http://download.revive-adserver.com/revive-adserver-3.2.2.zip--2015-11-09 17 cd 03 3 48 cd-http://download.revive-adserver.com/revive-adserver-3.2.2.zipResolving download.revive-adserver.com (download.revive-adserver.com). 54.230.119.219,54.239.132.177, 54.230.116.214,... Connecting to download.revive-adserver.com (download.revive-adserver.com) | 54.230.119.219 |: 80. Connected.HTTP request sent, awaiting response... 200 OKLength: 11663620 (11m) [application/zip] Saving to: 'revive-adserver-3.2.2.zip'revive-adserver-3.2 100% [= >] 11.12m 1.80MB/s in 13s2015-11-09 17:04:02 (906 KB/s) -' revive-adserver-3.2.2.zip' saved [11663620 amp 11663620]
Extract it to a temporary directory:
# unzip revive-adserver-3.2.2.zip
Move the unzipped entire folder to the default root directory / var/www/html/ of the Apache Web server:
# mv revive-adserver-3.2.2 / var/www/html/reviveads
6. Configure the Apache Web service
Let's create the reviveads.conf directly under the / etc/httpd/conf.d/ directory:
# vi / etc/httpd/conf.d/reviveads.conf
Add the following lines of text to this file:
ServerAdmin info@reviveads.linoxide.comDocumentRoot / var/www/html/reviveads/ServerName reviveads.linoxide.comServerAlias www.reviveads.linoxide.comOptions FollowSymLinksAllowOverride AllErrorLog / var/log/httpd/reviveads.linoxide.com-error_logCustomLog / var/log/httpd/reviveads.linoxide.com-access_log common
Save and exit, restart the Apache Web service:
# systemctl restart httpd
7. Fix permissions and ownership
Before we modify the permissions and ownership of the files under the installation path. Change the ownership of the installation directory to be owned by the Apache process so that the Apache Web service has full permissions to edit, create, and delete files and directories.
# chown apache:-R / var/www/html/reviveads
8. Set up a firewall
Now you need to configure the firewall to open port 80 so that the Revive Adserver running by the Apache Web service can be accessed by other machines on the network.
# firewall-cmd-permanent-add-service=httpsuccess# firewall-cmd-reloadsuccess
9. Installation of the website
Type http://ip-address/ or http://domain.com in the browser. Here we want to visit the welcome page of Revive Adserver when http://reviveads.linoxide.com/ is opened, which also has the GNU General Public license V2 as its license. Click I agree to continue with the next step of installation. On the next page, we will enter database information to connect the Revive Adserver to the MariaDB database service. To enter the database name, user name, and password you set up earlier. In this tutorial, we enter the database name as revivedb, the user name as reviveuser, the password as Pa$$worD123, and the hostname as localhost, and click continue to continue. Enter the information you want to fill in, such as administrator username, password and mailbox. You can log in to the control interface of Adserver with this information. Then skip to the last page, you can see that Revive Adserver has been successfully installed, and then go to the Adverstiser page to add new advertising management. Add new users to adserver in the control interface, and add titles, web pages, videos and other types of ads for advertising library users.
The above is all the contents of the article "how to install Revive Adserver under Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.