sobota 5. dubna 2008

How to deploy HawkWikiEx on Linux (Ubuntu 7.10)

1. Create a directory let's say /var/www/wiki.sample.com
2. Depending on your Apache2 configuration, create or open your site file e.g. /etc/apache2/sites-available/default on Ubuntu 7.10 and add a new virtual host:

<VirtualHost *>
ServerName wiki.sample.com
ServerAdmin your@yourmail.net

DocumentRoot /var/www/wiki.sample.com

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/wiki.sample.com>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
SetHandler mono
DirectoryIndex Default.aspx
AddType application/x-asp-net .wiki
AddType application/x-asp-net .showcode
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access_wiki.log combined
ServerSignature On

<Location /mono>
SetHandler mono-ctrl
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>

</VirtualHost>


3. Depending on your Mono-server configuration create a new WebApp file let's say /etc/mono-server/wiki.sample.com.webapp and add:

<apps>
<web-application>
<name>HawWikiEx on my domain</name>
<vpath>/</vpath>
<path>/var/www/wiki.sample.com</path>
<vhost>wiki.sample.com</vhost>
</web-application>
</apps>

4. Download a binary release of HawkWikiEx from Releases and put it in /var/www/wiki.sample.com
5. Restart Apache2 and Mono-server with (on Ubuntu 7.10)

sudo /etc/init.d/apache2 restart
sudo /etc/init.d/apache2 reload

6. Open your favorite browser and navigate to http://wiki.sample.com. HawkWikiEx StartPage should appear.

Žádné komentáře: