AuthPuppy authentication server for Wifidog networks, Installation of authpuppy and prerequisites in Debian

sudo apt-get install apache2

sudo apt-get install php5

These following commands are optionnals but may be help a lot.

sudo apt-get update

sudo apt-get upgrade --show-upgraded

end of optionnal commands

sudo apt-get install postgresql postgresql-contrib (if you plan to use postresql database)

or

sudo apt-get install mysql-server (if you plan to use mysql database)

*** Both of them (mysql or postgres) are on the same level. Using one of them is only a question of choice ***

sudo apt-get install php5-dev

sudo apt-get install php-pear

sudo apt-get install apache2-prefork-dev build-essential

pecl install apc

in the dynamic extensions part of php.ini

add extension=apc.so in /etc/php5/apache2/php.ini

add extension=apc.so in /etc/php5/cli/php.ini

change short_open_tag=on to off in php.ini (apache dir and cli dir)

by doing

sudo nano /etc/php5/apache2/php.ini

ctrl o ctrl x when everything is written

sudo nano /etc/php5/cli/php.ini

ctrl o ctrl x when everything is written

add subdirectory "authpuppy" in /var/log/apache2

by doing this

cd /var/log/apache2

sudo mkdir authpuppy

cd /

sudo a2enmod rewrite

sudo /etc/init.d/apache2 restart

sudo apt-get install php5-pgsqlp (if you are using postgresql database)

sudo apt-get install php5-mysql (if you are using mysql database)

To make sure that pdo and pdo-mysql or pdo and pdo-pgsql are correctly installed

type this command

sudo php -m

and you should see them among all the php5 modules installed.

sudo apt-get install php5-curl

sudo apt-get install php5-xsl

download last version of authpuppy, copy it in the root tmp dir

cd /tmp

sudo tar xvzf authpuppy--_.tgz

sudo mv authpuppy /var/www/

add these following lines in httpd.conf in the /etc/apache2 directory

by doing

sudo nano /etc/apache2/httpd.conf and copy and paste these following lines

ServerAdmin webmaster@localhost

ServerName authpuppy.localhost

ServerAlias authpuppy.test

DocumentRoot /var/www/authpuppy/web

DirectoryIndex index.php

Options Indexes FollowSymLinks MultiViews

AllowOverride All

Order allow,deny

allow from all

Alias /sf /var/www/authpuppy/lib/vendor/symfony/data/web/sf

AllowOverride All

Allow from All

ErrorLog /var/log/apache2/authpuppy/error.log

# Possible values include: debug, info, notice, warn, error, crit,

# alert, emerg.

LogLevel warn

CustomLog /var/log/apache2/authpuppy/access.log combined

ctrl-o ctrl-x

Note : To make sure that authpuppy will be launched correctly, it can help that the hosts

file in /etc directory have this line

127.0.0.1 authpuppy.localhost

by doing

sudo nano /etc/hosts

ctrl-o ctrl-x

Now, do these commands in terminal :

cd /var/www/authpuppy

sudo chown -R a+w config

sudo chown -R www-data cache

sudo chown -R www-data log

sudo chown -R www-data data

sudo chown -R www-data plugins

sudo chown -R www-data web

cd /

if you are using postgresql :

sudo -s -u postgres

createuser authpuppy --pwprompt

type n for each questions

createdb authpuppy --encoding=UTF-8 --owner=authpuppy

Type exit

if you are using mysql

user@yourserver $> mysqladmin -uroot -p create authpuppy

Enter password: #Enter the root password

user@yourserver $> mysql -uroot -p

Enter password:

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

Your MySQL connection id is 45

Server version: 5.0.51a-3ubuntu5.5 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create user 'authpuppy'@'localhost' identified by 'authpuppydev';

Query OK, 0 rows affected (0.21 sec)

mysql> grant all privileges on authpuppy.* to 'authpuppy'@'localhost'

with grant option;

Query OK, 0 rows affected (0.02 sec)

Type exit

Everything's may be ok now.

To make sure that you have a proper and clean installation

type :

symfony cc

in the /var/wwww/authpuppy directory.

Use your internet browser and type :http://authpuppy.localhost

Do not use chromium browser, there's a bug in it about opening local web server

本文章由 http://www.wifidog.pro/2015/02/25/Debian-install-authpuppy.html 整理编辑,转载请注明出处

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 194,524评论 5 460
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 81,869评论 2 371
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 141,813评论 0 320
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 52,210评论 1 263
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 61,085评论 4 355
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 46,117评论 1 272
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 36,533评论 3 381
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 35,219评论 0 253
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 39,487评论 1 290
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 34,582评论 2 309
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 36,362评论 1 326
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,218评论 3 312
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 37,589评论 3 299
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 28,899评论 0 17
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,176评论 1 250
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 41,503评论 2 341
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 40,707评论 2 335

推荐阅读更多精彩内容

  • //用tasksel可以一键安装lamp的集合环境包 root一、安装(以root的身份登入系统,不需要输入前边的...
    Tangbh阅读 1,637评论 1 2
  • 一、文件/文件夹管理 ls 列出当前目录文件(不包括隐含文件)ls -a 列出当前目录文件(包括隐含文件)l...
    路痴千行阅读 2,371评论 0 5
  • 一、文件/文件夹管理 ls 列出当前目录文件(不包括隐含文件) ls -a 列出当前目录文件(包括隐含文件) ls...
    会飞的鱼Coo阅读 4,448评论 1 23
  • Ubuntu 常用命令大全 查看软件 xxx 安装内容 #dpkg -L xxx 查找软件 #apt-cache ...
    guiwuzhe阅读 2,499评论 0 14
  • 在一个孤岛 我盼望自救 无人的空旷 唯有自渡 雨一直在下 渗透了心 我拧干精神里的潮湿 给灵魂里种一颗太阳 拨开阴...
    云中飘舞阅读 260评论 10 19