root/trunk/wifidog-auth/INSTALL @ 685

Revision 685, 3.0 KB (checked in by benoitg, 8 years ago)

2005-08-12 Benoit Gr�goire <bock@…>

  • classes/MainUI.php: Move the call to schema_validate() in MainUI's constructor
  • lib/RssPressReview/RssPressReview.php: Finish rewrite. Move there to reflect it's independently maintained status
  • wifidog/classes/Content/HotspotRss.php: Delete the class, obsolete
  • wifidog/classes/Content/RssAggregator.php: Functionnal, but needs it's admin UI written.
  • wifidog/include/schema_validate.php: Create the table structure for the new RssAggregator?. Remove rss_url in nodes table, no longer needed. Move it's data to the new Content class.
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1Prerequisites:
2-PHP5
3-Smarty template engine http://smarty.php.net/
4-Magpierss http://magpierss.sourceforge.net/ (Required for RSS support.  RSS support must be manually disabled if you do not insall it)
5-php's php-xml extention installed. (Required if RSS support is on)
6-php's dom extension installed. (Required if you want to export the list of HotSpots as a RSS feed)
7-php compiled with gettext support (Will be autodetected if unavailable, but you will loose internationalization)
8-PostgreSQL (mysql code also exists, but is looking for a maintainer)
9-PEAR ( if you need RADIUS auth support, see below )
10
11Install files:
12
13-Uncompress the tarball on your web server.
14-Copy the content of the libs directory of the smarty tarball in lib/smarty/
15-Copy the content of the magpierss-0.xx directory of the magpierss tarball in lib/magpie.  If you do not wish to install RSS support, you must set define('RSS_SUPPORT', false) in config.php.
16
17-portal/cache/, and everything in tmp/smarty must be at least writable by your web server.  Run "sh permissions.sh" to set them 777
18
19Database:
20-Create the user wifidog (both in postgres and on your system).
21-Import the schema:
22        psql -d template1 -U wifidog -W -f sql/wifidog-postgres-schema.sql
23-Import initial data:
24        psql -d template1 -U wifidog -W -f sql/wifidog-postgres-initial-data.sql
25
26Configure the system:   
27-Edit wifidog/config.php to suit your environment.
28
29*************************************
30RADIUS authentication support section
31*************************************
32
33The 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. 
34
35All 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:
36urpmi.addmedia contrib http://gulus.usherbrooke.ca/pub/distro/Mandrakelinux/official/10.1/i586/media/contrib with media_info/hdlist.cz
37
38You'll need the following packages:
39libphp5-commons
40php5-cli
41php5-devel
42php5-xml
43php5-xmlrpc ---> depends on libxmlrpc
44php5-mhash
45php5-mcrypt
46
47The following command should install them all and resolve dependencies:
48
49urpmi php5-cli php5-devel php5-xml php5-xmlrpc php5-mhash php5-mcrypt
50
51To install PEAR, run this in a shell:
52"lynx -source http://go-pear.org | php5"
53
54*************
55WARNING:
56You must have PHP5 CLI with php5ize installed
57NB : By default Mandrake renames the PHP binaries with a 5 suffix.  You should create symbolic links so that you can use standard scripts:
58
59ln -s /usr/bin/php5 /usr/bin/php
60ln -s /usr/bin/php5ize /usr/bin/phpize
61*************
62
63Now you'll need a few packages, you can let PEAR install them
64automatically:
65
66pear install radius   ( PECL module compilation)
67pear install Auth_RADIUS
68pear install Crypt_CHAP
69
70*****************************************
71End RADIUS authentication support section
72*****************************************
73
74
75Enjoy!
76
77 
Note: See TracBrowser for help on using the browser.