Thanks Bob,<div><br></div><div>I will roll this out to one of my boxes this week sometime.</div><div><br></div><div>James<br><br><div class="gmail_quote">On 20 September 2010 05:54, Bob Noordam <span dir="ltr"><<a href="mailto:b.noordam@xs4all.nl">b.noordam@xs4all.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">  Op 18-9-2010 5:52, James Darbyshire schreef:<br>
</div><div class="im">> Further to my previous email, has anyone installed mono on their<br>
> BlueOnyx boxes?<br>
><br>
> Now I am not too keen on installing additions to the bare-bones BO<br>
> boxes (Just in case I need to migrate from one box to another),<br>
> but I'm looking for a way to host ASPX pages using BO, and migrating<br>
> from my CentOS barebones installs.<br>
><br>
> Anyone?<br>
><br>
> --<br>
> Regards,<br>
<br>
<br>
<br>
</div>Here's a step by step to get Mono up and running on BlueOnyx, It<br>
basicaly comes down to simply yum-installing the thing, because it all<br>
is there in the official centos-extras repo, which is ready for use on<br>
BO. (beats the old-deploy-from-source-and-mess-up-the-box anytime)<br>
<br>
If you want i can supply a download for an oracle virtualbox machine<br>
with  a clean patched up BO and mono toy with, and test potential issues<br>
with other software. Then again - it's  a ten minute install so<br>
downloading probaly isnt worth it anyway<br>
<br>
This is a base install demonstrating a console "hello world" programm<br>
and it's compile, and a basic web page. If you want to use one<br>
of the default data providers you can install them from the extras repo<br>
site. The MySQL extensions for .NET also work with mono altough they<br>
are not supported. If you are serious about developing .NET application<br>
for linux yourself you will want to buy Novell's extensions to visual<br>
studio, they allow you to roll up a complete RPM from within VS. (or do<br>
a simple ftp-deploy for webapps)<br>
<br>
1)<br>
Setup a clean BlueOnyx from iso 5.5-20100519, Set clock back a year<br>
during first web run to evade the certificate warning.<br>
named the server <a href="http://test.server.com" target="_blank">test.server.com</a>, created a vsite named <a href="http://test.site.com" target="_blank">test.site.com</a><br>
<br>
2)<br>
Yum udpdated it too current, reboot to make sure all new stuff is active<br>
<br>
3)<br>
Added these to my hosts file on a local system to test with;<br>
192.168.3.202    <a href="http://test.server.com" target="_blank">test.server.com</a><br>
192.168.3.202    <a href="http://test.site.com" target="_blank">test.site.com</a><br>
<br>
4) Installed mono:<br>
yum grouinstall mono<br>
<br>
<br>
5)<br>
Test the setup, same drill as described on the mono "getting started"<br>
page, put the following into a text file named hello.cs<br>
<br>
using System;<br>
public class HelloWorld<br>
{<br>
     static public void Main ()<br>
     {<br>
         Console.WriteLine ("Hello Mono World");<br>
     }<br>
<br>
}<br>
<br>
<br>
[root@test ~]# gmcs hello.cs<br>
[root@test ~]# mono hello.exe<br>
Hello Mono World<br>
[root@test ~]#<br>
<br>
6)<br>
Now we have a functional base installation, on to the web integration.<br>
<br>
!! If you are even thinking of offering this commercialy, now go read<br>
this: <a href="http://mono-project.com/Mod_mono" target="_blank">http://mono-project.com/Mod_mono</a> !!<br>
!! and think about what isolation level you need. The standard setup<br>
with apache as a frontend and a single  !!<br>
!! mono server running the code for all sites is used<br>
below                                                  !!<br>
<br>
yum install mod_mono<br>
yum install xps<br>
<br>
<br>
<br>
The mod_mono.conf should now be in place, check:<br>
<br>
[root@test conf.d]# pwd<br>
/etc/httpd/conf.d<br>
[root@test conf.d]# ls -l mod_m*<br>
-rw-r--r-- 1 root root 1243 Jul 19 20:42 mod_mono.conf<br>
[root@test conf.d]#<br>
<br>
<br>
Be-ing in conf.d, mod_mono should auto load when restarting apache, so:<br>
/etc/init.d/httpd restart<br>
<br>
Test the aspx by placing the following in a site, name the file default.aspx<br>
<br>
<html><br>
<body><br>
<% Response.Write("Hello web world"); %><br>
</body><br>
</html><br>
<br>
Keep in mind you now serve aspx to ALL vsites, if you want to control<br>
this site-by-site you need to take a look at the settings in<br>
mod_mono.conf and move them to the sites you want to enable this for.<br>
<div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
Blueonyx mailing list<br>
<a href="mailto:Blueonyx@blueonyx.it">Blueonyx@blueonyx.it</a><br>
<a href="http://www.blueonyx.it/mailman/listinfo/blueonyx" target="_blank">http://www.blueonyx.it/mailman/listinfo/blueonyx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>James Darbyshire<br><a href="mailto:jamesdarbyshire@gmail.com">jamesdarbyshire@gmail.com</a><br>
</div>