how to install mod_mono in VPS
1.Log into the vps using ssh
2.Download the package
wget http://ftp.novell.com/pub/mono/sources/xsp/xsp-2.4.2.tar.bz2
3. Extract the download file,
tar jxvf xsp-2.4.2.tar.bz2
4.In to the xsp-2.4.2 folder,
cd xsp-2.4.2
5.configure, build and install XSP,
./configure –prefix=/opt/mono; make; make install
6.Install apache
yum -y install httpd-devel
7.Download mod_mono
8.Extract the download file,
tar jxvf mod_mono-2.4.2.tar.bz2
9.cd mod_mono-2.4.2
10./configure –prefix=/opt/mono; make; make install
11. open the httpd.conf file
<IfModule !mod_mono.c>
LoadModule mono_module /usr/lib/httpd/modules/mod_mono.so
AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx
</IfModule>
<VirtualHost *:80>
DocumentRoot /home/httpd/aspx/html
ServerName aspx.yoursite.com
Alias /demo /opt/mono/lib/xsp/test
MonoApplications “/demo:/opt/mono/lib/xsp/test”
MonoServerPath /opt/mono/bin/mod-mono-server2
<Directory /opt/mono/lib/xps/test>
SetHandler mono
</Directory>
</VirtualHost>
12.restart httpd service,
service httpd restart
13.Test it
visit http://aspx.yoursite.com/demo
Now mod_mono is installed succesfully.