centos6 revive-adserver

Revive Adserver是一个自由开源的广告管理系统,能使出版商,广告平台和广告商在网页、应用、视频上投放并管理广告的系统。

Revive Adserver以前叫做OpenX Source,遵循GNU通用公共授权协议。它集广告管理、网站定位地理定位和一个用于数据收集的跟踪系统于一体。能使网站站长管理内部的、付费的以及第三方来源的广告


实验环境

centos6.9_x64


实验软件

latest.rpm

revive-adserver-4.1.1.zip


软件安装

rpm -ivh latest.rpm 

sed -i 's/^mirrorlist=https/mirrorlist=http/' /etc/yum.repos.d/epel.repo

sed -i 's/^mirrorlist=https/mirrorlist=http/' /etc/yum.repos.d/webtatic.repo


yum install -y httpd* mysql mysql-devel mysql-server gcc gcc-c++ lrzsz lsof  wget 

yum install -y  php56w  php56w-bcmath php56w-cli php56w-common  php56w-devel php56w-fpm    php56w-gd php56w-imap  php56w-ldap php56w-mbstring php56w-mcrypt php56w-mysql   php56w-odbc   php56w-pdo php56w-pear php56w-pecl-igbinary  php56w-xml php56w-xmlrpc php56w-opcache php56w-intl php56w-pecl-memcache


php -version

PHP 5.6.32 (cli) (built: Oct 29 2017 19:00:01) 

Copyright (c) 1997-2016 The PHP Group

Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies         centos6默认php版本5.3 开源广告系统需要php5.6 必须升级


service mysqld start

service httpd start

chkconfig --level 35 httpd on 

chkconfig --level 35 mysqld on


sed -i 's/#ServerName www.example.com:80/ServerName *:80/g' /etc/httpd/conf/httpd.conf 

vim /etc/httpd/conf/httpd.conf

AddType application/x-tar .tgz                找到

AddType application/x-httpd-php .php  改为


netstat -tuplna | grep 80

tcp        0      0 :::80                       :::*                        LISTEN      2187/httpd          

udp        0      0 fe80::20c:29ff:fe23:fac9:123 :::*                                    1424/ntpd 


netstat -tuplna | grep 3306

tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      2115/mysqld 



ps -aux | grep httpd

Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ

root      2187  0.0  0.9 272492  9528 ?        Ss   11:08   0:00 /usr/sbin/httpd

apache    2189  0.0  0.5 272492  5468 ?        S    11:08   0:00 /usr/sbin/httpd

apache    2190  0.0  0.5 272492  5452 ?        S    11:08   0:00 /usr/sbin/httpd

apache    2191  0.0  0.5 272492  5452 ?        S    11:08   0:00 /usr/sbin/httpd

apache    2192  0.0  0.5 272492  5452 ?        S    11:08   0:00 /usr/sbin/httpd

apache    2193  0.0  0.5 272492  5452 ?        S    11:08   0:00 /usr/sbin/httpd

apache    2194  0.0  0.5 272492  5452 ?        S    11:08   0:00 /usr/sbin/httpd

apache    2195  0.0  0.5 272492  5452 ?        S    11:08   0:00 /usr/sbin/httpd

apache    2196  0.0  0.5 272492  5452 ?        S    11:08   0:00 /usr/sbin/httpd

root      2221  0.0  0.0 103268   876 pts/0    S+   11:21   0:00 grep httpd


ps -ef | grep mysqld

root      2013     1  0 11:05 pts/0    00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql

mysql     2115  2013  0 11:05 pts/0    00:00:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock

root      2223  1743  0 11:21 pts/0    00:00:00 grep mysqld


touch /var/www/html/test.php

echo "<?php phpinfo(); ?>"  >  /var/www/html/test.php 

more /var/www/html/test.php 

<?php phpinfo(); ?>


mysqladmin  -uroot password 数据库密码

mysql -uroot -p数据库密码

mysql> CREATE DATABASE revivedb;

mysql> CREATE USER 'reviveuser'@'localhost' IDENTIFIED BY '123456';     测试环境密码简单 

mysql> GRANT ALL PRIVILEGES ON revivedb.* TO 'reviveuser'@'localhost';

mysql> FLUSH PRIVILEGES;


mysql -ureviveuser -p123456

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 5

Server version: 5.1.73 Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 



mysql> show databases;

+--------------------+

| Database           |

+--------------------+

| information_schema |

| revivedb           |

| test               |

+--------------------+

3 rows in set (0.00 sec)


http://10.240.240.127/test.php



11.jpg



unzip revive-adserver-4.1.1.zip

mv revive-adserver-4.1.1 /var/www/html/ads

chown -R apache:apache /var/www/html/ads/


http://10.240.240.127/ads/www/admin/install.php?action=welcome


1.jpg


2.jpg


3.jpg


4.jpg



5.jpg





本文转自 mailfile 51CTO博客,原文链接:http://blog.51cto.com/mailfile/2059360,如需转载请自行联系原作者
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值