Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Revive Adserver ad server installation on Ubuntu 15.04 / CentOS7     - Eclipse, Tomcat configuration JNDI connection Oracle data source example (Server)

- Linux foundation tutorial: how to modify the host name on CentOS or RHEL 7 (Linux)

- Adjust the size of the hard disk VirtualBox (Linux)

- Linux system started to learn: the Linux syslog (Linux)

- Novice Advanced Ubuntu7.10 configured IP address (Linux)

- About phpwind 5.01-5.3 0day analysis of the article (Linux)

- How to install Git client in Ubuntu (Linux)

- Java generate two-dimensional code by Zxing (Programming)

- JavaScript property of checkbox.disabled (Programming)

- Hutchison DG standby database CPU consumption reached bottleneck repair (Database)

- MySQL Tutorial: Philosophical Reflections on the unauthenticated user (Database)

- Scala REPL Shell call (Programming)

- Setting Lns firewall against ARP attacks (Linux)

- Ubuntu 14.04 build Android 5.1 development environment and compiler (Linux)

- To modify the existing user ID and comments GPG key (Linux)

- Linux Shell introduces (Linux)

- Python, and / or (Programming)

- ORA-28000 the account is locked fault simulation (Database)

- ORA-00824: can not set sga_target due to existing problem-solving (Database)

- Linux system using the command line shutdown or restart (Linux)

  Revive Adserver ad server installation on Ubuntu 15.04 / CentOS7
  Add Date : 2018-11-21      
  Revive Adserver is a free open source ad management system, which enables publishers, advertisers and advertising platform to serve and manage ads on the page system, applications, video. Revive Adserver formerly called OpenX Source, the GNU General Public License. It combines advertising management, site targeting, geo-targeting and tracking systems for data collection in one. Webmaster can make internal management, paid advertising and third-party sources, such as Google's AdSense. This tutorial will teach you to install and run Revive Adserver in Ubuntu 15.04 or CentOS 7.

1. Install LAMP

First, Revive Adserver requires a full LAMP environment to run, so we tried to install LAMP. LAMP is the Apache Web server, MySQL / MariaDB database and PHP module collection. To Revive normal operation, you need to install many PHP modules, such as apc, zlib, xml, pcre, mysql and mbstring. Different Linux distributions, we can LAMP configuration with the following command:

In Ubuntu 15.04 under

# Apt-get install apache2 mariadb-server php5 php5-gd php5-mysql php5-curl php-apc zlibc zlib1g zlib1g-dev libpcre3 libpcre3-dev libapache2-mod-php5 zip

7 Under CentOS

#yum install httpd mariadb php php-gd php-mysql php-curl php-mbstring php-xml php-apc zlibc zlib1g zlib1g-dev libpcre3 libpcre3-dev zip

2. Start the Apache Web services and MariaDB

You can start just installed Apache Web services and MariaDB database server with the following command.


In Ubuntu 15.04 under

Ubuntu15.04 Systemd use as the default initial system, the Apache and MariaDB start the process with the following command:

#systemctl start apache2 mysql
You can make it with the following command to start automatically:

#systemctl enable apache2 mysql
Synchronizing state for apache2.service with sysvinit using update-rc.d ...
Executing / usr / sbin / update-rc.d apache2 defaults
Executing / usr / sbin / update-rc.d apache2 enable
Synchronizing state for mysql.service with sysvinit using update-rc.d ...
Executing / usr / sbin / update-rc.d mysql defaults
Executing / usr / sbin / update-rc.d mysql enable

7 Under CentOS

CentOS 7 is the same as the default Systemd initial system, you can start with the following command:

#systemctl start httpd mariadb
ln-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


In CentOS 7 / Ubuntu 15.04 under

When we first start MariaDB, MariaDB is not assigned a password, so we have to set a root password. After create a new database for storing Revive Adserver data.

Use the following commands to configure MariaDB and set the root password:

# Mysql_secure_installation
Then we will ask for the root password, but we have not set a password before anything, so press Enter Next. Thereafter, the requirement to set the root password, then we enter Y, then enter your desired password. Enter to continue.

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 MariaDB
root user without the proper authorisation.
Set root password? [Y / n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables ..
... Success!
installation should now be secure.
Configuring MariaDB

Configuring MariaDB


4. Create a new database

After you set a password for MariaDB root user, you can create a database to store application data Revive Adserver. First, by the following command to log MariaDB console:

# Mysql -u root -p
Then asked to enter the root user's password, as long as we enter the last step to set a good password. Then enter MariaDB console to create a new database, the database user and password, and grant create, delete, and edit all permissions and data storage table.

> CREATE USER 'reviveuser' @ 'localhost' IDENTIFIED BY 'Pa $$ worD123';
.> GRANT ALL PRIVILEGES ON revivedb * TO 'reviveuser' @ 'localhost';
Creating Mariadb Revive Database

Creating Mariadb Revive Database


5. Download Revive Adserver

Then download the latest version of Revive Adserver Revive Adserver.3.2.2 (at this writing). You can use the wget command to download from the official website Revive Adserverde archive site at: http: //www.revive-adserver.com/download/. Command is as follows:

# Cd / tmp /
#wget http://download.revive-adserver.com/revive-adserver-3.2.2.zip
--2015-11-0917: 03: 48-- http://download.revive-adserver.com/revive-adserver-3.2.2.zip
Resolving download.revive-adserver.com (download.revive-adserver.com) ...,,, ...
Connecting to download.revive-adserver.com (download.revive-adserver.com) | |: 80 ... connected.
HTTP request sent, awaiting response ... 200 OK
Length: 11663620 (11M) [application / zip]
Saving to: 'revive-adserver-3.2.2.zip'
revive-adserver-3.2100% [=====================>] 11.12M1.80MB / s in13s
2015-11-0917: 04: 02 (906 KB / s) - 'revive-adserver-3.2.2.zip' saved [11663620/11663620]
Unzip to a temporary directory:

# Unzip revive-adserver-3.2.2.zip
The entire file after extracting the folder to the root directory of the default Apache Web server / var / www / html / under:

#mv revive-adserver-3.2.2 / var / www / html / reviveads

6. Configure Apache Web Services

Now configure the Apache service to Revive running. By creating a profile reviveads.conf to create a new virtual host. This directory is different on different Linux distributions.


In Ubuntu 15.04 under

# Touch / etc / apache2 / sites-available / reviveads.conf
# Ln-s /etc/apache2/sites-available/reviveads.conf /etc/apache2/sites-enabled/reviveads.conf
# Nano / etc / apache2 / sites-available / reviveads.conf
Add the following few lines of text in the file:

ServerAdmin info@reviveads.linoxide.com
DocumentRoot / var / www / html / reviveads /
ServerName reviveads.linoxide.com
ServerAlias ​​www.reviveads.linoxide.com

Options FollowSymLinks
AllowOverride All

ErrorLog /var/log/apache2/reviveads.linoxide.com-error_log
CustomLog /var/log/apache2/reviveads.linoxide.com-access_log common

Configuring Apache2 Ubuntu

Configuring Apache2 Ubuntu

Save and exit and restart Apache Web services:

#systemctl restart apache2

7 Under CentOS

In CentOS, we created reviveads.conf directly at /etc/httpd/conf.d/ directory:

# Nano / etc / httpd / conf.d / reviveads.conf
Add the following few lines of text in the file:

ServerAdmin info@reviveads.linoxide.com
DocumentRoot / var / www / html / reviveads /
ServerName reviveads.linoxide.com
ServerAlias ​​www.reviveads.linoxide.com

Options FollowSymLinks
AllowOverride All

ErrorLog /var/log/httpd/reviveads.linoxide.com-error_log
CustomLog /var/log/httpd/reviveads.linoxide.com-access_log common

Configuring httpd Centos

Configuring httpd Centos

Save and exit and restart Apache Web services:

#systemctl restart httpd

7. repair permissions and ownership

Now we modify permissions and ownership of files under the installation path. The ownership of the Apache installation directory into all processes, so that Apache Web services have to edit files and directories, create and delete full privileges.


In Ubuntu 15.04 under

#chown www-data: -R / var / www / html / reviveads

7 Under CentOS

#chown apache: -R / var / www / html / reviveads

8. Set up a firewall

Now configure the firewall to open port 80 so Apache Web service running Revive Adserver can be accessed by other machines on the network.


7 Under Ubuntu 15.04 / CentOS

Ubuntu15.04 / CentOS 7 Systemd used as the default initial system, use firewalld as its firewall. To open port 80 (http service port), execute the following command:

# Firewall-cmd --permanent --add-service = http
# Firewall-cmd --reload

9. The installation site

Hopefully we can use to interact with the browser, and the browser can point to a network server is running. As long as the browser and enter http: // ip-address / or http://domain.com. Here we want to access http://reviveads.linoxide.com/

Revive Adserver can see the welcome page, as well as its top issue licenses GNU General Public License V2 open. I agree Click Next to continue the installation.

On the next page, we want to enter the database information in order to Revive Adserver and MariaDB database server connected. Before the database name you want to enter the settings, the user name and password. In this tutorial, we are entered into the database name revivedb, user name reviveuser, password Pa $$ worD123, and to make the host name localhost, click continue to proceed.

Configuring Revive Adserver

Configuring Revive Adserver

Enter to fill in information such as: the administrator user name, password and email. This information can log on Adserver control interface. Then skip to the last page, you can see Revive Adserver has been installed successfully.

Next, go to Adverstiser page, add a new ad management. In the control interface to add new users to the adserver, add titles, web pages, video ad for library users.


Sum up

In this article, we learn how to install and configure Revive Adserver on Ubuntu 15.04 and CentOS 7. Although Revive Adserver original code from OpenX bought it, but now Revive Adserver OpenX Enterprise and has been completely separated. You can get more plug-ins to extend from http://www.adserverplugins.com/ new features. Speak true, this software does make web pages, applications, video ad management becomes a lot easier.
- Linux System Getting Started Tutorial: How to find the maximum memory your system supports (Linux)
- MySQL concat function is SQL injection (Linux)
- MongoDB3.0.6 wiredtiger MMAPv1 (Database)
- Three kinds of implementation model of the Linux thread history (Programming)
- To establish a secure and reliable Linux operating system (Linux)
- Linux system package manager (rpm, yum, source packages installation) (Linux)
- Simple solution CC attack under Linux VPS (Linux)
- KVM add virtual disks (Linux)
- grep command Series: grep command to search for multiple words (Linux)
- Setting CentOS firewall open port (Linux)
- Linux 0.12 kernel and modern kernels difference in memory management (Linux)
- RedHat Linux source code package installation process (Linux)
- numpy and SciPy installation under Python for scientific computing package (Linux)
- What is Unikernel? (Linux)
- Analysis of Java exception (Programming)
- How to install PlayOnLinux 4.2.5 under Ubuntu 14.04 / 12.04 (Linux)
- How to upgrade to Oracle 11g Oracle 12c (Database)
- NFS-based services and service utilization Corosync DRBD high availability cluster configuration, respectively (Server)
- How to ensure that the Internet will not be attacked (Linux)
- Redis-- persistence articles (Database)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.