[Mono-list] Mono 1.9 + mod_mono on Ubuntu - strange problems
Bálint Kardos
kardosbalint at gmail.com
Fri Feb 13 13:53:30 EST 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090213/59873c0e/attachment-0001.html
More information about the Mono-list
mailing list