root/trunk/wifidog-auth/INSTALL @ 952

Revision 952, 3.5 KB (checked in by max-horvath, 7 years ago)

"2006-02-16 Max Horvath <max.horvath@…>

  • added full PHPdoc documentation to Mail class
  • added more temporary-email-address-providers to the black-list
  • Login site now uses a Smarty template to render HTML page
  • Refactored signup site - now it also includes the help toolbox
  • removed Phlickr directory in /lib dir as Phlickr must be installed via PEAR
  • modified gen.sh to include new template folders for the translation file generation"
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1PREREQUISITES
2=============
3
4- PHP 5.x (http://www.php.net)
5- PHP's mbstring extention installed
6- PHP's php-xml extention installed (Required if RSS support is on)
7- PHP's dom extension installed (Required if you want to export the list of
8  Hotspots as a RSS feed)
9- PHP's curl extension installed (Required if you want to use Phlickr)
10- PHP compiled with gettext support (Will be autodetected if unavailable, but
11  you will loose internationalization)
12- PostgreSQL 7.4+ (http://www.posgresql.org/)
13- Smarty template engine (http://smarty.php.net/)
14- Magpierss (http://magpierss.sourceforge.net/) (Required for RSS support. RSS
15  support must be manually disabled if you do not install it)
16- FCKeditor 2.2 (http://www.fckeditor.net/) (Required if you want to edit
17  content with a HTML text editor aka WYSIWYG editor)
18- PEAR (if you need RADIUS auth support, see below)
19- Phlickr 0.2.5+ installed as a PEAR package (http://phlickr.sourceforge.net/)
20  (required if you want to use the content class accessing Flickr photo albums)
21- PEAR packages radius, Auth_RADIUS and Crypt_CHAP (required if you need RADIUS
22  support)
23- PEAR packages Image_Graph-alpha Image_Canvas-alpha Image_Color (required if
24  you want to generate graphical statistics)
25- PEAR package Cache_Lite (required if you want to use WiFiDogs caching
26  capabilities)
27- PEAR package HTML_Safe-beta (required if you want to ensure that HTML enabled
28  input in various content classes will be filtered)
29
30INSTALLATION
31============
32
33Open with your browser the following URL:
34http://www.domain.com/wifidogPATH/install.php
35
36Replace www.domain.com by your domain and wifidogPATH by the right path.
37
38install.php will validate, install, create and configure all the stuff you need
39to have a working auth-server.
40
41WIKI
42====
43
44More detailed installation instructions can be found on our homepage at:
45http://www.wifidog.org/
46
47RADIUS AUTHENTICATION SUPPORT SECTION
48=====================================
49
50The following section only needs to be followed if you want RADIUS support.
51
52You'll need to install PEAR and several PEAR and PHP modules.  The procedure
53below is for PHP 5.0.2 under Mandrake 10.1. You WILL need to adapt it under
54other distributions.
55
56All necessary RPM packages are available in the contrib urpmi source. If you
57don't have a contrib source already, you can add one with the command:
58
59urpmi.addmedia contrib http://gulus.usherbrooke.ca/pub/distro/Mandrakelinux/official/10.1/i586/media/contrib with media_info/hdlist.cz
60
61You'll need the following packages:
62libphp5-commons
63php5-cli
64php5-devel
65php5-xml
66php5-xmlrpc ---> depends on libxmlrpc
67php5-mhash
68php5-mcrypt
69
70The following command should install them all and resolve dependencies:
71
72urpmi php5-cli php5-devel php5-xml php5-xmlrpc php5-mhash php5-mcrypt
73
74To install PEAR, run this in a shell:
75"lynx -source http://go-pear.org | php5"
76
77WARNING:
78--------
79You must have PHP5 CLI with php5ize installed
80
81NB: By default Mandrake renames the PHP binaries with a 5 suffix. You should
82    create symbolic links so that you can use standard scripts:
83
84    ln -s /usr/bin/php5 /usr/bin/php
85    ln -s /usr/bin/php5ize /usr/bin/phpize
86
87Now you'll need a few packages, you can let PEAR install them automatically:
88
89pear install radius Auth_RADIUS Crypt_CHAP
90
91BACKUP AND RESTORE
92==================
93
94To backup:
95        pg_dump wifidog --blobs --file=wifidog_backup.sql --format=c --ignore-version --no-owner -v --compress=3 -U wifidog
96
97To restore from a backup:
98        dropdb wifidog
99        createdb wifidog --encoding=UTF-8 --owner=wifidog
100        pg_restore -U wifidog -d wifidog -v wifidog_backup.sql
101
102Enjoy!
Note: See TracBrowser for help on using the browser.