[Mono-list] mmap problem with mod_mono
Fri, 6 May 2005 11:30:08 -0400
thanks for your answer (Gonzalo).
I did set the MonoWapiDir directive as you suggested, but now I have a different error message:
[Fri May 06 10:11:48 2005] [error] /sebas/.wapi: Permission denied
I looked in my /sebas directory and the .wapi directory was not created as expected.
To make sure it was not a permission issue, I executed the following commands:
chown apache.apache /sebas/.wapi/
chmod -R 777 /sebas
But the error message still appears in the log file.
Do you have another suggestion ? :-)
How do I make sure mod-mono-server is running as user "apache" ?
If it can help, here is the content of my mod_mono.conf file:
LoadModule mono_module /usr/lib/httpd/modules/mod_mono.so
Alias /mono "/usr/share/doc/xsp/test"
[mailto:firstname.lastname@example.org]On Behalf Of Gonzalo Paniagua
Sent: Thursday, May 05, 2005 9:33 PM
Subject: Re: [Mono-list] mmap problem with mod_mono
On Thu, 2005-05-05 at 15:35 -0400, Sébastien Robitaille wrote:
> I am trying to use mod_mono with Apache for the first time and I am =
facing the following problem:
> When I try to access my asp web page, I receive a "Service Temporarily =
> Also, in the apache error log file, the following message appears =
> ** (/usr/lib/mono/1.0/mod-mono-server.exe:2784): CRITICAL **: =
_wapi_shm_attach: mmap error: Permission denied
> ** ERROR **: file handles.c: line 123 (shared_init): assertion failed: =
(_wapi_shared_layout != NULL)
> I changed the permissions on my /tmp directory (chmod 777 /tmp) but =
the problem is still there.
> The following file exists on my disk (the file used with mmap): =
> I tried removing the .wapi directory.
> I also ran xsp instead of Apache with success.
> Any idea on what could be wrong?
Make sure that the user running apache is the same that runs
mod-mono-server and owns /tmp/.wapi directory.
As an alternative, you can use MonoWapiDir directive to tell
mod-mono-server the directory in which .wapi will be created.
Mono-list maillist - Monoemail@example.com