-
Notifications
You must be signed in to change notification settings - Fork 116
/
INSTALL
executable file
·102 lines (77 loc) · 3.46 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
PREREQUISITES
=============
- PHP 5.x (http://www.php.net)
- PHP's mbstring extention installed
- PHP's php-xml extention installed (Required if RSS support is on)
- PHP's dom extension installed (Required if you want to export the list of
Hotspots as a RSS feed)
- PHP's curl extension installed (Required if you want to use Phlickr)
- PHP compiled with gettext support (Will be autodetected if unavailable, but
you will loose internationalization)
- PostgreSQL 7.4+ (http://www.posgresql.org/)
- Smarty template engine (http://smarty.php.net/)
- Magpierss (http://magpierss.sourceforge.net/) (Required for RSS support. RSS
support must be manually disabled if you do not install it)
- FCKeditor 2.3+ (http://www.fckeditor.net/) (Required if you want to edit
content with a HTML text editor aka WYSIWYG editor)
- FPDF 1.53+ (http://www.fpdf.org/) (Required if you want to export the node
list into a PDF file)
- PEAR (if you need RADIUS auth support, see below)
- Phlickr 0.2.5+ installed as a PEAR package (http://phlickr.sourceforge.net/)
(required if you want to use the content class accessing Flickr photo albums)
- PEAR packages radius, Auth_RADIUS and Crypt_CHAP (required if you need RADIUS
support)
- PEAR packages Image_Graph-alpha Image_Canvas-alpha Image_Color (required if
you want to generate graphical statistics)
- PEAR package Cache_Lite (required if you want to use WiFiDogs caching
capabilities)
- PEAR package HTML_Safe-beta (required if you want to ensure that HTML enabled
input in various content classes will be filtered)
INSTALLATION
============
Open with your browser the following URL:
http://www.domain.com/wifidogPATH/install.php
Replace www.domain.com by your domain and wifidogPATH by the right path.
install.php will validate, install, create and configure all the stuff you need
to have a working auth-server.
WIKI
====
More detailed installation instructions can be found on our homepage at:
http://www.wifidog.org/
RADIUS AUTHENTICATION SUPPORT SECTION
=====================================
The following section only needs to be followed if you want RADIUS support.
You'll need to install PEAR and several PEAR and PHP modules. The procedure
below is for PHP 5.0.2 under Mandrake 10.1. You WILL need to adapt it under
other distributions.
All necessary RPM packages are available in the contrib urpmi source. If you
don't have a contrib source already, you can add one with the command:
urpmi.addmedia contrib http://gulus.usherbrooke.ca/pub/distro/Mandrakelinux/official/10.1/i586/media/contrib with media_info/hdlist.cz
You'll need the following packages:
libphp5-commons
php5-cli
php5-devel
php5-xml
php5-xmlrpc ---> depends on libxmlrpc
php5-mhash
php5-mcrypt
The following command should install them all and resolve dependencies:
urpmi php5-cli php5-devel php5-xml php5-xmlrpc php5-mhash php5-mcrypt
To install PEAR, run this in a shell:
"lynx -source http://go-pear.org | php5"
WARNING:
--------
You must have PHP5 CLI with php5ize installed
NB: By default Mandrake renames the PHP binaries with a 5 suffix. You should
create symbolic links so that you can use standard scripts:
ln -s /usr/bin/php5 /usr/bin/php
ln -s /usr/bin/php5ize /usr/bin/phpize
Now you'll need a few packages, you can let PEAR install them automatically:
pear install radius Auth_RADIUS Crypt_CHAP
BACKUP AND RESTORE
==================
To backup:
/sql/backup_database.sh wifidog_backup.sql
To restore from a backup:
/sql/restore_database.sh wifidog_backup.sql
Enjoy!