Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Revive Adserver ad server installation on Ubuntu 15.04 / CentOS7     - Java source implementation of the observer pattern instance (Programming)

- mysqldump issue a note (Database)

- Linux system started to learn: how to view the Linux thread of a process (Linux)

- Ubuntu 14.04 Configuring cuda-convnet (Linux)

- Use Ambari rapid deployment Hadoop big data environment (Server)

- Elaborate .NET Multithreading: Using Task (Programming)

- Java learning problems encountered (Programming)

- ld.so.conf.d profile (Linux)

- Linux suffered SYN flood attack setting (Linux)

- Linux terminal program running in the background (Linux)

- Repair fatal error in Linux: lame / lame.h: No such file or dir Error (Linux)

- CentOS permanently banned from running in the background PackageKit (Linux)

- Single-node Hadoop installation notes distributed pseudo & (Server)

- Java string intern constant pool resolution Introduction (Programming)

- Ubuntu UFW firewall settings Introduction (Linux)

- Linux text processing tool of awk (Linux)

- Cygwin install Python MySQLdb (Linux)

- Father of Python: Why Python zero-based index (Programming)

- Java input and output common class Scanner (Programming)

- ARM platform compiler installation Golang (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.
ThanksforusingMariaDB!
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 DATABASE revivedb;
> CREATE USER 'reviveuser' @ 'localhost' IDENTIFIED BY 'Pa $$ worD123';
.> GRANT ALL PRIVILEGES ON revivedb * TO 'reviveuser' @ 'localhost';
> FLUSH PRIVILEGES;
> EXIT;
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) ... 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 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
success
# Firewall-cmd --reload
success
 

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.
     
         
         
         
  More:      
 
- Installation under Linux to deploy Java (Linux)
- With screenfetch linux logo and basic hardware information display with cool Linux logo (Linux)
- Hadoop virtualization performance comparison and tuning experience (Server)
- Install the system cleaning software under Linux: BleachBit 1.4 (Linux)
- Linux environment SSH login password instead of using the RSA Certificate (Linux)
- Ubuntu 14.10 splash screen brightness settings (Linux)
- Redhat 7 modify the default run level method --RHEL7 use systemd to create a symbolic link to the default runlevel (Linux)
- Linux modify the network interface name (Linux)
- Enterprise Hadoop cluster architecture - NFS installation (Server)
- PSUADE installation under Linux (Linux)
- How do you access Dropbox Linux command line (Linux)
- Linux add a new hard disk (Linux)
- Linux account management add relevant directives (Linux)
- Python script running in the background (Programming)
- Java multi-threaded communications pipeline flow (Programming)
- Ubuntu 14.10 / 14.04 / 12.04 installation GNOME Pie 0.5.6 (Linux)
- Linux operating system ARP Spoofing Defense (Linux)
- OpenSSL Introduction and compilation steps on Windows, Linux, Mac systems (Linux)
- MongoDB fragmentation (Cluster) (Database)
- Creating and extracting archives 11 tar command examples in Linux (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.