Project

General

Profile

Installing Wt on Gentoo » History » Version 31

darren sy, 02/07/2012 01:02 PM

1 31 darren sy
h1. Installing Wt on Gentoo
2
3 1 Pieter Libin
{{toc}}
4
5 6 Koen Deforche
h2. Installing Wt
6
7 5 Koen Deforche
Wt is now in portage. See also:
8 16 Scott Wood
* http://gentoo-portage.com/net-libs/wt
9
* http://bugs.gentoo.org/show_bug.cgi?id=259686
10 31 darren sy
11 1 Pieter Libin
h2. Trying the examples 
12
13
h3. Deployment with wthttpd 
14
15 23 Lawrence Whyte
Simply follow the instructions in the INSTALL file (with X the name of an example):
16 19 richarde ortiz
17 6 Koen Deforche
<pre>
18 1 Pieter Libin
$ cd ../examples/X # source directory for example X
19
$ ../../build/examples/X/X.wt --docroot . --http-address 0.0.0.0 --http-port 8080
20
</pre>
21
22
h3. Deployment with FastCGI 
23
24
Modify /etc/init.d/apache2 to enable fastcgi:
25
26 6 Koen Deforche
<pre>
27 1 Pieter Libin
APACHE2_OPTS="... -D FASTCGI"
28
</pre>
29
30
Enable ExecCGI for the location where you wish to install the examples:
31
32
<pre>
33
<Location /wt-examples>
34
<pre>
35
    Options ExecCGI
36
    Allow from All
37
</pre>
38
</Location>
39
</pre>
40
41
To install a particular example:
42
43
<pre>
44
# cd build/examples/composer
45 17 linkbuilding service
# ./deploy.sh
46
</pre>
47
48
And list the path in /etc/apache2/modules.d/20_mod_fastcgi.conf:
49
50
<pre>
51
FastCgiServer /var/www/localhost/htdocs/wt-examples/composer/composer.wt -idle-timeout 120 -processes 1
52 1 Pieter Libin
</pre>
53
54
Finally, restart your apache, and check your log files for problems !
55
<pre>
56
/etc/init.d/apache2 restart
57
</pre>
58 31 darren sy
"cash advance online":http://www.cashadvance-loans.net/
59
"research paper.":http://iresearchpapers.com/
60
"web hosting":http://www.eekdomains.com/web-hosting/
61
"ipad keyboard case":http://www.solidlineproducts.com/