[Mono-list] mono:: 0.30 on Debian SID

Jose Ramon Palanco jrp@hazent.com
Wed, 04 Feb 2004 21:25:25 +0100


Hi everyboy,

You can alienize Fedora's rpms and it will work fine ;) in my debian SID
box

More or less this are the steps to have all installed (included
mod_mono).

$ cd /tmp && wget -m http://www.go-mono.com/archive/0.30/fedora-1-i386/
$ cd www.go-mono.com/archive/0.30/fedora-1-i386/
$ alien *.rpm
$ su -c dpkg -i *.deb

I have installed apache2 (it should works with apache 1.3), 

$ cat /etc/apache2/mods-available/mono.load
LoadModule mono_module /usr/lib/httpd/modules/mod_mono.so

I wasn't sure of adding the alias in
/etc/apache2/mods-available/mono.conf, so I write my conf in httpd.conf

$ cat /etc/apache2/httpd.conf
ServerName localhost
MonoUnixSocket /tmp/mod_mono_server
Alias /mono "/usr/share/doc/xsp/test"
<Directory "/usr/share/doc/xsp/test">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

Create a init-script for start xsp... more or less like this:
$ cat /etc/init.d/xsp-server
case $1 in
   start)
     echo -n "Starting xsp server"
     mono /usr/bin/mod-mono-server.exe --nonstop --root \
/usr/share/doc/xsp/test --applications /mono:. & >/dev/null 
     sleep 5 # ugly hack, we sould use $? variable
     chown www-data /tmp/mod_mono_server  
     echo .
   ;;
   stop)
     kill -9 $(ps ax | grep mod-mono-server | awk '{ printf($1"\n") }')	
   ;;
   *)
     echo "Usage: /etc/init.d/xsp-server start|stop"
   ;;
esac

Then link it to you favority run level ;)

Reload apache configuration, start the xsp-server and enjoy it!!

Saludos ;)