Prepare for EH installation

apt-get update

apt-get install php5 php5-common libapache2-mod-php5 php5-cgi php5-cli php5-mysql php-pear php5-gd php5-gmp php5-mcrypt php-db

Check/Set PHP5 Config

Check that „short_open_tag“ is set to „On“ in php.ini

root@raspberrypi:~# grep short_open_tag /etc/php5/cgi/php.ini
; short_open_tag
short_open_tag = On
root@raspberrypi:~# grep short_open_tag /etc/php5/apache2/php.ini
; short_open_tag
short_open_tag = On
root@raspberrypi:~# grep short_open_tag /etc/php5/cli/php.ini
; short_open_tag
short_open_tag = On

Also uncommend and set „date.timezone“ to „Europe/Berlin“

root@raspberrypi:~# grep date.timezone /etc/php5/cgi/php.ini
; http://php.net/date.timezone
date.timezone = Europe/Berlin
root@raspberrypi:~# grep date.timezone /etc/php5/apache2/php.ini
; http://php.net/date.timezone
date.timezone = Europe/Berlin
root@raspberrypi:~# grep date.timezone /etc/php5/cli/php.ini
; http://php.net/date.timezone
date.timezone = Europe/Berlin
root@raspberrypi:~# 
Get Easy-Hotspot Files

Download easyhotspot web from https://github.com/rafeequl.

cd /opt
git clone https://github.com/rafeequl/EasyHotspot
 
Extract EasyHotspot Image

Extract downloaded EASY-Hotspot image to /opt.
As we are using CoovaChilly some directories could be already removed.
My /opt/EasyHotspot looks like this:

 
/opt/EasyHotspot# ls -rtl
total 44
-rwxrwxr-x 1 pi pi   824 Oct 18 20:34 README
-rwxrwxr-x 1 pi pi  2544 Oct 18 20:34 license.txt
drwxrwxr-x 6 pi pi  4096 Oct 18 20:34 htdocs
dr--r--r-- 2 pi pi  4096 Oct 18 20:34 hotspot
-rw-rw-r-- 1 pi pi 17987 Oct 18 20:34 Easyhotspot-License.txt
drwxrwxr-x 2 pi pi  4096 Oct 18 20:34 doc
drwxrwxr-x 2 pi pi  4096 Oct 20 14:22 install
ln -s /opt/Easyhotspot/htdocs/ /var/www/https/easyhotspot
 
Set EASY-Hotspot DB credentials

Set the credentials that you plan to assign to the DB for EASY-Hotspot in Setup DB

vi /opt/Easyhotspot/htdocs/system/application/config/database.php

$active_group = "default";

$db['default']['hostname'] = "localhost";
$db['default']['username'] = "easyhotspot";
$db['default']['password'] = "<password>";
$db['default']['database'] = "easyhpradiusdb";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['active_r'] = TRUE;
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";


 
Set EASY-Hotspot generic credentials

e.g. Name Address, decimal seperator, Freeraduis Secret and so on:

vi /opt/easyhotspot/htdocs/system/application/config/easyhotspot.php

$config['EASYHOTSPOT_VERSION']='0.2';
$config['EASYHOTSPOT_THEME']='default';

$config['CHILLISPOT_COFIG_FILE']='/etc/chilli.conf';

$config['company_name'] = 'EasyHotspot Ramazotti';
$config['company_address_line1'] = 'Strasse';
$config['company_address_line2'] = 'FFM';
$config['company_address_line3'] = 'Germany';
$config['company_phone'] = '+49 69 123456';

$config['currency_symbol'] = 'EUR ';
$config['currency_symbol_pdf'] = 'EUR ';
$conifg['company_tax_code'] = '';
$config['admin_price_input'] = 'converted';
$config['thousands_separator'] = '.';
$config['decimal_separator'] = ',';
$config['decimal_places'] = '2';


$config['CHILLISPOT_CONFIG_FILE'] = '/etc/chilli.conf';

$config['postpaid_acct_interim_interval'] = '120';
$config['voucher_acct_interim_interval'] = '120';


//Freeradius
$config['radiusserver'] = '127.0.0.1:3779';
$config['radiuscommand'] = 'radclient -x';
$config['radiussecret'] = 'RaspiRadi';



 
Set EASY-Hotspot generic credentials
vi /opt/easyhotspot/htdocs/system/application/config/config.php

|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
|	http://www.your-site.com/
|
*/
$config['base_url']	= "https://192.168.2.6/easyhotspot/";


Back to HotSpot Overview-Page

f11/technik/raspberrypi/hotspotdm3kb/raspbeasyhpinst.txt · Zuletzt geändert: 2019/09/29 12:03 (Externe Bearbeitung)
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0