I most read "mono" "apache", so , personaly i find AspNet in mono , intersting after the 1.9 version. Also i really suggest to folow howto from mono website, this is the way i did with really succes
http://www.mono-project.com/Mod_mono 2009/2/13 Amc Gmail <[email protected]>: > You don't need to upgrade to recent Mono, and i would not recommend it > for start, just to avoid multi-Mono environment configuration issues. > (OK, ok, nothing wrong with multiple-Mono's :-), but I would start > from simple single Mono 1.9, which you do have on Ubuntu 8.10 > out-of-the-box). > > About XXGLOBAL error on apache restart: > i do have that problem on Ubuntu, but it never cause any trouble. > there is nothing like that on other's like CentOS for example. Sorry, > but i have no solution for that error message, but it seems to be safe > to ignore it. > > About apache config: > for Ubuntu 7 & 8.xx to run each site under separate mod-mono-server > instances you can add something like this at the end of > /etc/apache2/sites-available/default: > > > # > # Mono auto-hosting disabled > # > MonoAutoApplication disabled > > # > # Mono control panel > # > # <Location /mono> > # SetHandler mono-ctrl > # Order deny,allow > # Deny from all > # Allow from 127.0.0.1 > # </Location> > > # > # default mod-mono-server instance to serve everything below host root > # > AddMonoApplications default "/:/var/www/" > > # > # ASPX test in /tst_aspx virtual dir > # served by tst_aspx mod-mono-server instance > # > Alias /tst_aspx "/var/tst/aspx/" > AddMonoApplications tst_aspx "/tst_aspx:/var/tst/aspx/" > <Directory "/var/tst/aspx/"> > Options FollowSymLinks > AllowOverride None > Order deny,allow > Allow from all > MonoSetServerAlias tst_aspx > </Directory> > > # > # my_demo application in /my_demo virtual dir > # served by my_demo mod-mono-server instance > # > Alias /my_demo "/var/my/my_demo/site/" > AddMonoApplications my_demo "/my_demo:/var/my/my_demo/site/" > <Directory "/var/my/my_demo/site/"> > Options FollowSymLinks > AllowOverride None > Order deny,allow > Allow from all > MonoSetServerAlias my_demo > </Directory> > > # > # my2 application in /my2 virtual dir > # served by my2 mod-mono-server instance > # > # Alias /my2 "/var/my/my_2/site/" > # AddMonoApplications my2 "/my2:/var/my/my_2/site/" > # <Location "/my2"> > # MonoSetServerAlias my2 > # SetHandler mono > # </Location> > > </VirtualHost> > > > > On Fri, Feb 13, 2009 at 2:10 PM, Petit Eric <[email protected]> wrote: >> I think you should upgrade to a more recent version : >> http://www.go-mono.com/mono-downloads/download.html >> or svn :-) >> >> 2009/2/13 Bálint Kardos <[email protected]>: >>> Hi, >>> I've installed Mono 1.9 and mod_mono on Ubuntu. >>> I have two mono-related sites in my apache config. >>> The config is the same structure for both: >>> <VirtualHost www.site.hu:80> >>> DocumentRoot /web/site.hu/ >>> MonoServerPath site /usr/bin/mod-mono-server2 >>> MonoApplications site "/:/web/site.hu/" >>> <Directory /web/site.hu> >>> MonoSetServerAlias site >>> SetHandler mono >>> </Directory> >>> </VirtualHost> >>> <VirtualHost www.site2.hu:80> >>> DocumentRoot /web/site2.hu/ >>> MonoServerPath site2 /usr/bin/mod-mono-server2 >>> MonoApplications site2 "/:/web/site2.hu/" >>> <Directory /web/site2.hu> >>> MonoSetServerAlias site2 >>> SetHandler mono >>> </Directory> >>> </VirtualHost> >>> This is the only way I found to start 2 (two) instances of the mono-server. >>> This brings up >>> Problem 1) >>> On Apache start, I see an error: >>> [Fri Feb 13 18:36:54 2009] [crit] (13)Permission denied: Failed to attach to >>> existing dashboard, and removing dashboard file '/tmp/mod_mono_dashboard_ >>> XXGLOBAL_1' failed (Operation not permitted). Further action impossible. >>> [Fri Feb 13 18:36:54 2009] [crit] (17)File exists: Failed to create shared >>> memory segment for backend 'XXGLOBAL' at '/tmp/mod_mono_dashboard_XXGLOBAL_ >>> 1'. >>> Question 1) How to get rid of these errors? >>> And I have 3 mono-server instances running (ps aux out): >>> 1) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename >>> /tmp/.mod_mono_server2 --nonstop --appconfigdir /etc/mono-server2 >>> 2) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename >>> /tmp/mod_mono_server_site --applications /:/web/site.hu --nonstopSsl >>> 2) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename >>> /tmp/mod_mono_server_site2 --applications /:/web/site2.hu --nonstopSsl >>> Question 2) How can I disable server no.1 - I need only 2 instances? >>> Problem 2) >>> Without setting MonoServerPath, always mod-mono-server is starting, which >>> gives a file not found, so i linked mod-mono-server to mod-mono-server2 for >>> a quick workaround. >>> In /etc/mono-server2/mono-server2-host.conf I have mod-mono-server2, so I >>> don't understand where apache gets it's "mod-mono-server" string. >>> >>> Can anyone please HELP me with a clear, understandable, multi-site mod_mono >>> setup? :) >>> It would be really appreciated! >>> >>> Thanks, >>> Balint >>> >>> üdvözlettel >>> with regards >>> >>> Kardos Bálint >>> _______________________________________ >>> http://skaelede.hu 10 (0xA) év a magyar weben >>> >>> _______________________________________________ >>> Mono-list maillist - [email protected] >>> http://lists.ximian.com/mailman/listinfo/mono-list >>> >>> >> >> >> >> -- >> >> Cordially. >> >> Small Eric Quotations of the days: >> --------------------------------------------------------------------------- >> If one day one reproaches you that your work is not a work of >> professional, say you that: >> Amateurs built the arch of Noah, and professionals the Titanic. >> --------------------------------------------------------------------------- >> >> Few people are done for independence, it is the privilege of the powerful >> ones. >> --------------------------------------------------------------------------- >> >> No key was wounded during the drafting of this message. >> _______________________________________________ >> Mono-list maillist - [email protected] >> http://lists.ximian.com/mailman/listinfo/mono-list >> > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- If one day one reproaches you that your work is not a work of professional, say you that: Amateurs built the arch of Noah, and professionals the Titanic. --------------------------------------------------------------------------- Few people are done for independence, it is the privilege of the powerful ones. --------------------------------------------------------------------------- No key was wounded during the drafting of this message. _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
