Trace: » installation_of_the_wifidog_authorisation_server

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

You don't have an account yet? Just get one: Register

Forgotten your password? Get a new one: Send new password

Wireless Authorisation Server

Installing the Wireless Auth Server on Debian Sarge (again, it’ll be fine on Ubuntu too!) - The rough and ready guide!

I feel its important to point out, that unlike the client installation guide this guide does not hand hold the reader through the entire process. The guide assumes some knowledge of Linux server administration. If you are confused by anything here then remember Google is your friend! You can also get help at wifidog.org

Grab the minimal install of Debian Sarge and install to your server. Ensure that you have ‘testing’ sources added to your apt configuration file.

  • Do an apt-get update and an apt-get upgrade to update your Debian/Ubuntu installation and grab the latest sources to your apt cache.
  • Install Apache2 apt-get install apache2
  • Install PHP5 for Apache2 apt-get install libapache2-mod-php5
  • Install PostgreSQL apt-get install postgresql-8.1
  • Install PostgreSQL support for PHP5 apt-get install php5-pgsql
  • If you wish to use PEAR, you can download the Debian package from the unstable branch by running apt-get install php-pear You will also need curl support for php which you can get by running apt-get install php5-curl
  • Download the latest copy of Wifidog Auth (or even better, get it from svn) and untar it to your web directory.
  • Run install.php and follow the guide there to get your Auth server going. If you get problems with missing modules like pgsql, then try restarting Apache apache2 -k restart a couple of times to ensure that the changes have applied properly.
  • Edit config.php to suit your needs.

Configuring the postgresql database for wifidog installation

You will need to create a user and a database for your wifidog installation. You need to make a note of the username and password of your user, and the name of your database. You will need these during the install process.

Creating a postgresql user Switch to the postgres database user account su postgres then type the following to set up your new user and create the database, make sure that you press enter after each line. Be careful when typing the code ensuring you don’t miss the semicolons!

$ psql
-> CREATE USER wifidog
-> WITH PASSWORD 'yourpassword';
-> CREATE DATABASE wifidog
-> WITH OWNER wifidog;

You should now be the proud owner of a wifidog database! To exit the pgsql command tool type ‘\q’ To change back to the root user again type ‘su root’ and then your password when prompted.