| 1 | Prerequisites: |
|---|
| 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 | |
|---|
| 11 | Install 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 | |
|---|
| 19 | Database: |
|---|
| 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 | |
|---|
| 26 | Configure the system: |
|---|
| 27 | -Edit wifidog/config.php to suit your environment. |
|---|
| 28 | |
|---|
| 29 | ************************************* |
|---|
| 30 | RADIUS authentication support section |
|---|
| 31 | ************************************* |
|---|
| 32 | |
|---|
| 33 | 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. |
|---|
| 34 | |
|---|
| 35 | 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: |
|---|
| 36 | urpmi.addmedia contrib http://gulus.usherbrooke.ca/pub/distro/Mandrakelinux/official/10.1/i586/media/contrib with media_info/hdlist.cz |
|---|
| 37 | |
|---|
| 38 | You'll need the following packages: |
|---|
| 39 | libphp5-commons |
|---|
| 40 | php5-cli |
|---|
| 41 | php5-devel |
|---|
| 42 | php5-xml |
|---|
| 43 | php5-xmlrpc ---> depends on libxmlrpc |
|---|
| 44 | php5-mhash |
|---|
| 45 | php5-mcrypt |
|---|
| 46 | |
|---|
| 47 | The following command should install them all and resolve dependencies: |
|---|
| 48 | |
|---|
| 49 | urpmi php5-cli php5-devel php5-xml php5-xmlrpc php5-mhash php5-mcrypt |
|---|
| 50 | |
|---|
| 51 | To install PEAR, run this in a shell: |
|---|
| 52 | "lynx -source http://go-pear.org | php5" |
|---|
| 53 | |
|---|
| 54 | ************* |
|---|
| 55 | WARNING: |
|---|
| 56 | You must have PHP5 CLI with php5ize installed |
|---|
| 57 | NB : By default Mandrake renames the PHP binaries with a 5 suffix. You should create symbolic links so that you can use standard scripts: |
|---|
| 58 | |
|---|
| 59 | ln -s /usr/bin/php5 /usr/bin/php |
|---|
| 60 | ln -s /usr/bin/php5ize /usr/bin/phpize |
|---|
| 61 | ************* |
|---|
| 62 | |
|---|
| 63 | Now you'll need a few packages, you can let PEAR install them |
|---|
| 64 | automatically: |
|---|
| 65 | |
|---|
| 66 | pear install radius ( PECL module compilation) |
|---|
| 67 | pear install Auth_RADIUS |
|---|
| 68 | pear install Crypt_CHAP |
|---|
| 69 | |
|---|
| 70 | ***************************************** |
|---|
| 71 | End RADIUS authentication support section |
|---|
| 72 | ***************************************** |
|---|
| 73 | |
|---|
| 74 | |
|---|
| 75 | Enjoy! |
|---|
| 76 | |
|---|
| 77 | |
|---|