[Mono-list] mod_mono installation / config problems

yoros@wanadoo.es yoros@wanadoo.es
Wed, 1 Oct 2003 17:02:05 +0200

On Wed, Oct 01, 2003 at 07:25:57AM -0600, White, Solomon wrote:
> Hello all--
> I am having difficulty getting mod_mono 0.4 working with redhat 9 / Apache 2.0.47 / mono 0.26.
> 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.
> 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.

It is because that "internal calls" are going to be resolved at runtime.

> I added the following to the end of my httpd.conf:
> Listen 8080
> LoadModule mono_module /usr/local/apache/lib/libmod_mono.so
> LoadModMonoDll /usr/lib/ModMono.dll

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.

> Alias /mono /usr/local/apache/mono

You don't need it because MonoApplication tells apache to find /mono
files in /path/to/...

> <Location /mono/*.aspx>
> SetHandler application/x-httpd-mono
> </Location>

Since the module will add the handler itself you don't need to add this

> When I try to start apache, I get the following error:
> Syntax error on line 1052 of /usr/local/apache/conf/httpd.conf:
> Invalid command 'LoadModMonoDll', perhaps mis-spelled or defined by a module not included in the server configuration

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.



Pedro Martínez Juliá
\  yoros@terra.es
)|    yoros@wanadoo.es
/        http://yoros.dyndns.org
Socio HispaLinux #311
Usuario Linux #275438 - http://counter.li.org
GnuPG public information:  pub  1024D/74F1D3AC
Key fingerprint = 8431 7B47 D2B4 5A46 5F8E  534F 588B E285 74F1 D3AC