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