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: pg_dump wifidog --blobs --file=wifidog_backup.sql --format=c --ignore-version --no-owner -v --compress=3 -U wifidog To restore from a backup: dropdb wifidog createdb wifidog --encoding=UTF-8 --owner=wifidog pg_restore -U wifidog -d wifidog -v wifidog_backup.sql Enjoy!