Wt installation

Installation
git clone http://www.webtoolkit.eu/git/wt.git cmake ../ -DCONNECTOR_FCGI=ON
 * Download last version from:
 * Install dependencies: http://redmine.webtoolkit.eu/projects/wt/wiki/Installing_Wt_on_Ubuntu#installing-system-dependencies Note, that the last version of boost libraries in Ubuntu repositories was 1.40 on the moment of the writing of this article. (Don't forget about libfcgi-dev)
 * Very good! Wt installation instructions: http://www.webtoolkit.eu/wt/doc/reference/html/Installation.html
 * But don't forget to enable fastcgi if you want to connect your application to lighhtpd and other web servers except wthttpd. You should configure libraries with libwtfcgi:
 * owner of /var/run/wt should be www-data and group should be www-data too

Example from sources (using cmake)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 * Find 'hello.C' in downloaded from git wt sources.
 * It's better for compiler to rename it to 'hello.cpp'
 * Create root directory for this app, for example 'hello'. Create 'source' and 'build' directories in 'hello'
 * Add 'hello.cpp' to 'source' directory
 * Create 'CMakeLists.txt' in root ('hello') directory:

PROJECT(WT_HELLO)

SET (WT_CONNECTOR "wtfcgi" CACHE STRING "Connector used (wthttp or wtfcgi)")

ADD_SUBDIRECTORY(source) SET(WT_PROJECT_SOURCE hello.cpp )
 * Create 'CMakeLists.txt' in 'source' directory:

SET(WT_PROJECT_TARGET hello.wt)

ADD_EXECUTABLE(${WT_PROJECT_TARGET} ${WT_PROJECT_SOURCE})

TARGET_LINK_LIBRARIES(${WT_PROJECT_TARGET} ${WT_CONNECTOR} wt)

INCLUDE_DIRECTORIES(/usr/local/include/Wt) cmake .. make
 * Go to 'build' directory and run:
 * hello.wt is created
 * More information about cmake with wt can be found here: http://redmine.webtoolkit.eu/projects/wt/wiki/Using_CMake

Run hello.wt on lighttpd through FastCGI
fastcgi.server += ("/hello" =>                  ("hello" => ("socket" => "/tmp/hello.socket",                     "bin-path" => "/srv/www/cgi-bin/hello.wt",                      "max-procs" => 1,                      "check-local" => "disable",                      "bin-environment" => ("FOO" => "bar", "LD_LIBRARY_PATH" => "/usr/local/lib")                    ) )               ) server.modules              = (            "mod_access", ...            "mod_fastcgi", ... ) sudo /etc/init.d/lighttpd force-reload
 * Create 'hello.conf' in /etc/lighttpd/conf-enabled:
 * Add fastcgi module in /etc/lighttpd/lighttpd.conf:
 * 1)           "mod_rewrite",
 * Restart lighttpd:
 * Test application: http://127.0.0.1/hello
 * More information about wt with lighttpd can be found here: http://redmine.emweb.be/projects/1/wiki/Fastcgi_on_lighttpd