Installing Wt on Gentoo
Version 31 (darren sy, 02/07/2012 01:02 pm)
| 1 | 31 | darren sy | h1. Installing Wt on Gentoo |
|---|---|---|---|
| 2 | 31 | darren sy | |
| 3 | 1 | {{toc}} |
|
| 4 | 1 | ||
| 5 | 6 | Koen Deforche | h2. Installing Wt |
| 6 | 6 | Koen Deforche | |
| 7 | 5 | Koen Deforche | Wt is now in portage. See also: |
| 8 | 16 | Scott Wood | * http://gentoo-portage.com/net-libs/wt |
| 9 | 16 | Scott Wood | * http://bugs.gentoo.org/show_bug.cgi?id=259686 |
| 10 | 31 | darren sy | |
| 11 | 1 | h2. Trying the examples |
|
| 12 | 1 | ||
| 13 | 1 | h3. Deployment with wthttpd |
|
| 14 | 1 | ||
| 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 | $ 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 | 1 | h3. Deployment with FastCGI |
|
| 23 | 1 | ||
| 24 | 1 | Modify /etc/init.d/apache2 to enable fastcgi: |
|
| 25 | 1 | ||
| 26 | 6 | Koen Deforche | <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 | 17 | linkbuilding service | # ./deploy.sh |
| 46 | 17 | linkbuilding service | </pre> |
| 47 | 17 | linkbuilding service | |
| 48 | 17 | linkbuilding service | And list the path in /etc/apache2/modules.d/20_mod_fastcgi.conf: |
| 49 | 17 | linkbuilding service | |
| 50 | 17 | linkbuilding service | <pre> |
| 51 | 17 | linkbuilding service | 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 | 31 | darren sy | "cash advance online":http://www.cashadvance-loans.net/ |
| 59 | 31 | darren sy | "research paper.":http://iresearchpapers.com/ |
| 60 | 31 | darren sy | "web hosting":http://www.eekdomains.com/web-hosting/ |
| 61 | 31 | darren sy | "ipad keyboard case":http://www.solidlineproducts.com/ |