[5722] | 1 | !!! BEGIN WARNING !!!
|
---|
| 2 | This script are NOT written to run in a production envirionment,
|
---|
| 3 | people who has access to the subversion genesis directory all allowed to
|
---|
| 4 | put marvilous code in there, which will potentially ruin your machine
|
---|
| 5 | !!! END WARNING !!!!
|
---|
| 6 |
|
---|
| 7 |
|
---|
| 8 | In order to get the genesis webinterface up and running we need to
|
---|
| 9 | configure some bits and pieces:
|
---|
| 10 | * Apache
|
---|
| 11 | * Subversion (in order to update)
|
---|
| 12 | * Perl
|
---|
| 13 |
|
---|
| 14 | So lets get started:
|
---|
| 15 | #Make a working directory and jump to it
|
---|
| 16 | $mkdir /usr/local/www/data/genesis
|
---|
| 17 | $cd /usr/local/www/data/genesis
|
---|
| 18 |
|
---|
| 19 | #Make a checkout of the genesis directory
|
---|
| 20 | $svn co http://svn.wirelessleiden.nl/svn/node-config/genesis .
|
---|
| 21 | #Allow the webserver to update nodes
|
---|
| 22 | $chown -R www:www nodes
|
---|
| 23 |
|
---|
| 24 | #Make local config file
|
---|
| 25 | $mv tools/FreeBSD6_x/genesis.conf.local{.tmpl,}
|
---|
| 26 |
|
---|
| 27 | #Edit the following variables $home, $server, $cgi_dir (and others and
|
---|
| 28 | #needed)
|
---|
| 29 | $vim tools/FreeBSD6_x/genesis.conf.local
|
---|
| 30 |
|
---|
| 31 | Next job, apache configuration
|
---|
| 32 | === begin httpd.conf ===
|
---|
| 33 | <VirtualHost *:80>
|
---|
| 34 | ServerName wlconfig
|
---|
| 35 | ServerAlias wlconfig.wzoeterwoude.net
|
---|
| 36 | ServerAlias rick.wleiden.net
|
---|
| 37 | ServerAlias 172.27.129.66
|
---|
| 38 | DocumentRoot "/usr/local/www/data/genesis"
|
---|
| 39 |
|
---|
| 40 | ErrorLog "|/usr/local/sbin/rotatelogs \
|
---|
| 41 | /var/log/httpd/wlconfig.wzoeterwoude.net-error-%Y-%m-%d.log 5M"
|
---|
| 42 | CustomLog "|/usr/local/sbin/rotatelogs \
|
---|
| 43 | /var/log/httpd/wlconfig.wzoeterwoude.net-access-%Y-%m-%d.log 5M" combined
|
---|
| 44 |
|
---|
| 45 |
|
---|
| 46 | DirectoryIndex g_list.pl
|
---|
| 47 | AddHandler cgi-script .pl
|
---|
| 48 |
|
---|
| 49 | <Directory "/usr/local/www/data/genesis">
|
---|
| 50 | Options +ExecCGI
|
---|
| 51 | AllowOverride None
|
---|
| 52 | Allow from all
|
---|
| 53 | </Directory>
|
---|
| 54 |
|
---|
| 55 | </VirtualHost>
|
---|
| 56 | === begin httpd.conf ===
|
---|
| 57 |
|
---|
| 58 | Restart apache and hit your webbrowser to the configured webpage
|
---|
| 59 |
|
---|
| 60 | Thats all folks :-), questions/problems/suggestions ->
|
---|
| 61 | <beheer@lijst.wirelessleiden.nl> (english/dutch)
|
---|
| 62 |
|
---|
| 63 | /Rick <rick@wirelessleiden.nl>
|
---|