Tim Hastings - NonHostile (because there's no need)

Weblog and collection of geeky articles.

  Home :: Who? :: Contact :: Links :: Subscribe subscribe
Abigail, 15 Months OldEnjoying Blackpool BeachRyan's Third Week


This week, the Mono team released version 2.2 of the framework (release notes).

I have created a new Amazon EC2 image with Mono 2.2 installed on Amazon's Fedora 8 image.

This new image supersedes the previous versions I created for 1.9.1 and 2.0.

Here's is a link to this image's page in the EC2 resource centre.


The EC2 AMI and manifest path are:

ami-dc8760b5
nonhostile-mono2-2-i386/image.manifest.xml

Once you start this instance, you can browse to its public DNS name to see the XSP test sites.

This instance is intended to serve web applications or run console based applications or services; it does not have any kind of graphical interface.


Ingredients
This instance was made from:
  • Amazon’s Fedora 8 base image (ami-5647a33f v1.08)
  • Latest updates via yum
  • Apache 2.2.9 installed via yum
  • Apache and mod_mono are configured to serve the XSP 'test' files from the web site's root in /etc/httpd/conf/httpd.conf (at the bottom)

The following have been compiled and installed from the Mono 2.2 stable sources with the --prefix=/usr

  • mono-2.2
  • mono-basic-2.2
  • mod_mono-2.2
  • libgdiplus-2.2
  • xsp-2.2
Sample Projects

The sample ASP.Net files for 1.0 and 2.0 are installed at this root:

/usr/lib/xsp/test

The Apache config (/etc/httpd/conf/httpd.conf) file has been configured to serve an ASP.Net application from this location.

You can edit the Apache configuration file using vim. Use Ctrl-D in vim to page-scroll down.

vim /etc/httpd/conf/httpd.conf
# Set mono as the handler
SetHandler mono

# Configure a 'root' web application to run from root
MonoApplications root "/:/usr/lib/xsp/test"
MonoServerPath root /usr/bin/mod-mono-server2
<Location />
  MonoSetServerAlias root
</Location>
Configuring your own ASP.Net applications

To serve your own ASP.Net applications from this instance, you need to store the files somewhere, for example, /mnt/MyApp, then modify the MonoApplications directive at the bottom of the Apache configuration file.

MonoApplications root "/:/mnt/MyApp"

Good luck and happy Mono developing!


Links

bookmark this on del.icio.us

© 2009 Copyright Tim Hastings



2 comments, Development, Saturday, January 17, 2009 23:15

Timeline Navigation for Development posts
MonoAmi: Mono 2.2 Amazon EC2 Image - Hosting for ASP.Net In The Cloud (this post, made Saturday, January 17, 2009 23:15)
MonoAmi: Mono 2.0 Amazon EC2 Image - Cloud Hosting for ASP.Net (made 14 weeks earlier)


Comments
Hey there, we're using your MonoAmi 2.2 image and it's been a great starting point! Wondering if you plan on updating it for Mono 2.4?

Posted by: Nick on Thursday, April 30, 2009 19:50
Thanks! You saved me a lot of time (compiling mono and installing Apache :).

Posted by: Roman Pavlyuk on Wednesday, September 30, 2009 18:31

Post a Comment
Name:  Home page and email address are optional.
  Email addresses will not be displayed or spammed!
Remember these details
Email:
Home Page:
Comment:
Comments cannot contain HTML, URLs will be formatted into hyperlinks.
I reserve the right to remove any comments for any reason.