зеркало из https://github.com/mono/mail-archives.git
126 строки
4.6 KiB
HTML
126 строки
4.6 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||
<HTML>
|
||
<HEAD>
|
||
<TITLE> [Mono-list] mod_mono installation / config problems
|
||
</TITLE>
|
||
<LINK REL="Index" HREF="index.html" >
|
||
<LINK REL="made" HREF="mailto:yoros%40wanadoo.es">
|
||
<META NAME="robots" CONTENT="index,nofollow">
|
||
|
||
<LINK REL="Previous" HREF="016062.html">
|
||
<LINK REL="Next" HREF="016063.html">
|
||
</HEAD>
|
||
<BODY BGCOLOR="#ffffff">
|
||
<H1>[Mono-list] mod_mono installation / config problems
|
||
</H1>
|
||
<B>yoros@wanadoo.es
|
||
</B>
|
||
<A HREF="mailto:yoros%40wanadoo.es"
|
||
TITLE="[Mono-list] mod_mono installation / config problems">yoros@wanadoo.es
|
||
</A><BR>
|
||
<I>Wed, 1 Oct 2003 17:02:05 +0200</I>
|
||
<P><UL>
|
||
<LI> Previous message: <A HREF="016062.html">[Mono-list] mod_mono installation / config problems
|
||
</A></li>
|
||
<LI> Next message: <A HREF="016063.html">[Mono-list] mod_mono
|
||
</A></li>
|
||
<LI> <B>Messages sorted by:</B>
|
||
<a href="date.html#16064">[ date ]</a>
|
||
<a href="thread.html#16064">[ thread ]</a>
|
||
<a href="subject.html#16064">[ subject ]</a>
|
||
<a href="author.html#16064">[ author ]</a>
|
||
</LI>
|
||
</UL>
|
||
<HR>
|
||
<!--beginarticle-->
|
||
<PRE>On Wed, Oct 01, 2003 at 07:25:57AM -0600, White, Solomon wrote:
|
||
><i> Hello all--
|
||
</I>><i>
|
||
</I>><i> I am having difficulty getting mod_mono 0.4 working with redhat 9 / Apache 2.0.47 / mono 0.26.
|
||
</I>><i>
|
||
</I>><i> mono seems to be installed and working correctly--I compiled and ran a helloworld application just fine. mod_mono builds fine; src/.libs/libmod_mono.so and company are generated successfully, and I copied this file to /usr/local/apache/lib.
|
||
</I>><i>
|
||
</I>><i> When building ModMono.dll, I am getting numerous warnings about "can't resolve internal call" and errors about "Your mono runtime and corlib are out of sync". However, I saw on a FAQ that these are acceptable, as long as the dll is built, and it is. I copied the dll to /usr/lib.
|
||
</I>><i>
|
||
</I>
|
||
It is because that "internal calls" are going to be resolved at runtime.
|
||
|
||
><i> I added the following to the end of my httpd.conf:
|
||
</I>><i>
|
||
</I>><i> Listen 8080
|
||
</I>><i> LoadModule mono_module /usr/local/apache/lib/libmod_mono.so
|
||
</I>><i> LoadModMonoDll /usr/lib/ModMono.dll
|
||
</I>><i>
|
||
</I>
|
||
I don't know anything about LoadModMonoDll... where did you read that?
|
||
|
||
You must add MonoApplication directive like the following:
|
||
|
||
MonoApplication /mono /path/to/your/asp.net/files
|
||
|
||
|
||
mod_mono will load ModMono itself from any of the paths listed in
|
||
MONO_PATH environment variable and I think it looks into the
|
||
${prefix}/lib where ${prefix}/bin is were you installed mono.
|
||
|
||
><i> Alias /mono /usr/local/apache/mono
|
||
</I>><i>
|
||
</I>
|
||
You don't need it because MonoApplication tells apache to find /mono
|
||
files in /path/to/...
|
||
|
||
><i> <Location /mono/*.aspx>
|
||
</I>><i> SetHandler application/x-httpd-mono
|
||
</I>><i> </Location>
|
||
</I>><i>
|
||
</I>
|
||
Since the module will add the handler itself you don't need to add this
|
||
directive.
|
||
|
||
><i> When I try to start apache, I get the following error:
|
||
</I>><i>
|
||
</I>><i> Syntax error on line 1052 of /usr/local/apache/conf/httpd.conf:
|
||
</I>><i> Invalid command 'LoadModMonoDll', perhaps mis-spelled or defined by a module not included in the server configuration
|
||
</I>><i>
|
||
</I>
|
||
This is becasue of LoadModMonoDll is not defined, like I said before.
|
||
|
||
|
||
I recommend you to take a look at mod_mono_unix because it is the "good"
|
||
module by now.
|
||
|
||
In (at least) mod_mono CVS module you have INSTALL documentation for
|
||
mod_mono and mod_mono_unix. Please read it.
|
||
|
||
Regards,
|
||
|
||
Pedro
|
||
|
||
--
|
||
Pedro Mart<72>nez Juli<6C>
|
||
\ <A HREF="mailto:yoros@terra.es">yoros@terra.es</A>
|
||
)| <A HREF="mailto:yoros@wanadoo.es">yoros@wanadoo.es</A>
|
||
/ <A HREF="http://yoros.dyndns.org">http://yoros.dyndns.org</A>
|
||
Socio HispaLinux #311
|
||
Usuario Linux #275438 - <A HREF="http://counter.li.org">http://counter.li.org</A>
|
||
GnuPG public information: pub 1024D/74F1D3AC
|
||
Key fingerprint = 8431 7B47 D2B4 5A46 5F8E 534F 588B E285 74F1 D3AC
|
||
|
||
</PRE>
|
||
<!--endarticle-->
|
||
<HR>
|
||
<P><UL>
|
||
<!--threads-->
|
||
<LI> Previous message: <A HREF="016062.html">[Mono-list] mod_mono installation / config problems
|
||
</A></li>
|
||
<LI> Next message: <A HREF="016063.html">[Mono-list] mod_mono
|
||
</A></li>
|
||
<LI> <B>Messages sorted by:</B>
|
||
<a href="date.html#16064">[ date ]</a>
|
||
<a href="thread.html#16064">[ thread ]</a>
|
||
<a href="subject.html#16064">[ subject ]</a>
|
||
<a href="author.html#16064">[ author ]</a>
|
||
</LI>
|
||
</UL>
|
||
</body></html>
|