2012 - GWAN web server
The Slovak original of this document: 2012 - GWAN web server (slovensky).
[0] Zakladne pojmy
====================
Host a virtual host
---------------------
/opt/gwan/0.0.0.0_8080
----------------------
The server listens on every network interface on port 8080
----------------------
Pr:
/opt/gwan/192.168.254.11_80
----------------------
Server pocuva na IP adrese 192.168.254.11 a porte 80
/opt/gwan/0.0.0.0_8080/#0.0.0.0
-------------------------------
Hostname (domena.sk) alebo IP adresa (192.168.254.11)
-------------------------------
#domena.sk - root host
$ina.domena.sk - virtual host
$dalsiadomena.sk - virtual host
Kompletny priklad
-----------------
listener 1: / gwan / 192.168.254.11_80 / #client35.example (root host)
/ $ares.client35.example (virtual host)
/ $domena.sk (virtual host)
listener 2: / gwan / 192.168.254.11_443 / #client34.example (root host)
/ $domena.eu (virtual host)
An alias for a host or a virtual host
-------------------------------------
listener 1: / gwan / 192.168.254.11_80 / #client35.example (root host)
/ #client35.example:client13.example (alias pre root host)
listener 1: / gwan / 192.168.254.11_80 / #client35.example (root host)
/ $ares.client35.example (virtual host)
/ $ares.client35.example:alias.client35.example (alias pre virtual host)
[1] The basic installation of GwAN
==================================
Stiahneme a rozbalime poslednu verziu GWAN (32 alebo 64 bit)
------------------------------------------------------------
# cd /opt
# wget http://www.gwan.com/archives/gwan_linux32-bit.tar.bz2
# wget http://www.gwan.com/archives/gwan_linux64-bit.tar.bz2
Rozbalime GWAN server (odstranime povodny balicek)
--------------------------------------------------
# cd /opt
# tar -xvf ./gwan_linux64-bit.tar.bz2
# rm ./gwan_linux64-bit.tar.bz2
# mv ./gwan_linux64-bit ./gwan
GCC - needed to run ANSI C scripts
----------------------------------
# apt-get install gcc
[2] The basic installation of GwAN - the optional packages
==========================================================
GOBJC++ - needed to run Objective C and C++ scripts
---------------------------------------------------
# apt-get install gobjc++
JAVAC - needed to run JAVA scripts
----------------------------------
# apt-get install openjdk-6-jdk
SQLITE LIB - needed by scripts that use sqlite3 as their database engine
------------------------------------------------------------------------
# apt-get install libsqlite3-dev
[3] Poinstalacne pripravne prace
===================================
(1) Create the user (gwan) the GWAN server will run as
(2) Zakazeme uzivatelovy "gwan" prihlasovanie sa na system
-------------------------------------------------------------------
# useradd gwan
# usermod -s /bin/false gwan
(1) For the basic, prepared configuration, which listens on "0.0.0.0:8080"
(2) a virtual host "#0.0.0.0"
(3) turn logging on (it is off by default)
---------------------------------------------------------------------------
# cd /opt/gwan/0.0.0.0_8080
# cd ./#0.0.0.0
# mv ./_logs/ ./logs
[4] Spustenie GWAN servera
============================
Spustime GWAN server pod uzivatelom "gwan" v daemon mode
--------------------------------------------------------
# cd /opt/gwan
# ./gwan -d::gwan
[LINKz]
==========
RioTC - Rio Template Compiler
-----------------------------
http://riotc.blogspot.com/2011/09/welcome.html