ULib
Table of Contents
1 Getting Started With ULib
To help those curious souls that want to see if userver is a good fit for their needs I have recorded my own experiences below. Firstly a huge thankyou to Stefano Casazza not only for making ULib but for all his patience in answering all my questions.
1.1 What is userver
UServer is a extensible plugin based web server that is build on top of ULib.
ULib is installed as a set of shared object libraries and header files (like Boost).
1.2 Get a copy of the ULib source code
1.3 configure your build
For those of you like me who havn't had much experience playing with autotools read the config help or:
./configure -h
Having now decided on what features you need let ./configure do its magic.
For example: ./configure –enable-debug –with-sqlite3
make sudo make install
1.4 configure userver
Assuming you haven't changed the PREFIX make will install userver to /usr/local
At this point we need to configure /usr/local/etc/userver.cfg
The file is well annotated at a bare minimum setup the following values:
DOCUMENT_ROOT /var/www
LOG_FILE userver.log
PLUGIN "http"
PLUGIN_DIR /usr/local/libexec
ORM_DRIVER_DIR /usr/local/libexec
This environment variables are for ORM management:
ORM_DRIVER "sqlite"
ORM_OPTION "host=localhost user=user password=pass character-set=utf8 dbname=/path_to_db/dbname.db"