Differences

This shows you the differences between two versions of the page.

Link to this comparison view

installing [2013-05-14 23:16]
wikiadmin created
installing [2013-12-06 14:43] (current)
rspencer Fix formatting and factual error
Line 1: Line 1:
-=====Installing ​SMRadius=====+====== Installing ​======
  
-Requirements:​ +Setup MySQL (or which ever database you plan to use).
-   +
-  * MySQL or PostgreSQL or SQLite +
-  * Net::Server >= 0.96 +
-  * Config::​IniFiles (Debian based: libconfig-inifiles-perl,​ RPM based: perl-Config-IniFiles) +
-  * Cache::​FastMmap (Debian based: libcache-fastmmap-perl,​ RPM based: perl-Cache-FastMmap) +
-  * DateTime (requires: perl-Class-Singleton) +
-  * TimeDate +
-  * Crypt::​DES +
-  * Crytpt::​RC4 +
-  * Digest::​SHA1 +
-  * Digest::​MD4 +
-  * PHP v5+ (WebUI)+
  
-Steps:+In database/ run the following:
  
-  * Setup MySQL  (or which ever database you plan to use) +<​code>​ 
-  * <​code>​# In database/ run... +for i in core.tsql wisp.tsql users-accounting-summary.tsql 
-for i in core.tsql wisp.tsql users-accounting-summary.tsql +do 
-do +./​convert-tsql mysql $i 
-$        ​./​convert-tsql mysql $i # Where mysql is your database choice, see ./​convert-tsql help +done > smradius.mysql 
-done > smradius.mysql+</​code>​
  
-Load smradius.mysql into your database +Load smradius.mysql into your database
-mysql -u root -p smradius < smradius.mysql</​code>​ + 
-  ​* ​Adjust smradiusd.conf to reflect your database details +<​code>​ 
-  ​* ​Copy the webgui/ & webui/ directories to your http directory and alter webgui/​include/​config.php and webui/​user/​include/​config.php to reflect your database details +mysql -u root -p smradius < smradius.mysql 
-  ​* ​Copy the smradius/ & awitpt/ directories into /​usr/​local/​lib/​smradius/​ +</​code>​ 
-  ​* ​<​code>​mkdir /​usr/​local/​lib/​smradius + 
-cp -r cbp /​usr/​local/​lib/​smradius/​ +Adjust smradiusd.conf to reflect your database details
-cp -r awitpt/​awitpt /​usr/​local/​lib/​smradius/</​code>​ + 
-  ​* ​Copy smradiusd and smadmin into /​usr/​local/​bin +Copy the webgui/ & webui/ directories to your http directory and alter webgui/​include/​config.php and webui/​user/​include/​config.php to reflect your database details
-  ​* ​<​code>​cp smadmin /​usr/​local/​bin/​ + 
-cp smradiusd /​usr/​local/​sbin/</​code>​ +Copy the smradius/ & awitpt/ directories into /​usr/​local/​lib/​smradius/​
-  ​* ​Setup system dirs + 
-  ​* ​<​code>​mkdir /​var/​log/​smradius +<​code>​ 
-mkdir /​var/​run/​smradius</​code>​ +mkdir /​usr/​local/​lib/​smradius 
-    ​* ​If you are running smradius as an unprivileged user: +cp -r smradius ​/​usr/​local/​lib/​smradius/​ 
-    ​* ​<​code>​chown smradius.smradius /​var/​log/​smradius /​var/​run/​smradius</​code>​ +cp -r awitpt/​awitpt /​usr/​local/​lib/​smradius/​ 
-  ​* ​You can now browse to the web interface and configure+</​code>​ 
 + 
 +Copy smradiusd and smadmin into /​usr/​local/​bin
 + 
 +<​code>​ 
 +cp smadmin /​usr/​local/​bin/​ 
 +cp smradiusd /​usr/​local/​sbin/​ 
 +</​code>​ 
 + 
 +Setup system dirs
 + 
 +<​code>​ 
 +mkdir /​var/​log/​smradius 
 +mkdir /​var/​run/​smradius 
 +</​code>​ 
 + 
 +If you are running smradius as an unprivileged user: 
 + 
 +<​code>​ 
 +chown smradius.smradius /​var/​log/​smradius /​var/​run/​smradius 
 +</​code>​ 
 + 
 +You can now browse to the web interface and configure.