AW: [Mono-list] .wapi problem with mod_mono
Schneickert, Andre
Andre.Schneickert at escs.de
Mon Nov 21 06:20:22 EST 2005
Hi Alex,
thanks for your answer, but it didn't work.
I stopped Apache, deleted the directory and started Apache.
/tmp/.wapi has been recreated, owned by the user "apache". The Apache log shows
** (/usr/lib/pkgconfig/../../lib/xsp/1.0/mod-mono-server.exe:6380):
CRITICAL **: _wapi_shm_attach: mmap error: Permission denied
** ERROR **: file handles.c: line 125 (shared_init): assertion failed:
(_wapi_shared_layout != NULL) aborting...
again...
André
> Hi,
>
> Try (as root) to remove /tmp/.wapi directory prior to starting apache.
> Your error indicates that the apache user cannot create (or
> access) that directory, which probably means it already
> exists (and it's owned by some other user).
>
> Simple rm -rf /tmp/.wapi as root should do.
>
> Best regards,
> alex.
>
> On 11/21/05, Schneickert, Andre <Andre.Schneickert at escs.de> wrote:
> > Hello,
> >
> > I'm struggeling with getting mod_mono tu run under Lineox
> 4.053 (equal to Red Hat Enterprise Server 4).
> > The installed Apache version is 2.052. Apache runs with
> user and group "apache".
> > The mono and mod_mono versions are 1.1.10 (mono installed
> from rpm, mod_mono compiled from source).
> >
> > I set up the test directory /usr/lib/xsp/test in httpd.conf
> as follows:
> >
> > LoadModule mono_module modules/mod_mono.so Alias /test
> > "/usr/lib/xsp/test"
> > MonoApplications "test:/usr/lib/xsp/test"
> > <Location /test>
> > SetHandler mono
> > </Location>
> >
> > Restarting Apache gave me these errors first:
> >
> > ** (/usr/lib/pkgconfig/../../lib/xsp/1.0/mod-mono-server.exe:6380):
> > CRITICAL **: _wapi_shm_attach: mmap error: Permission denied
> >
> > ** ERROR **: file handles.c: line 125 (shared_init):
> assertion failed:
> > (_wapi_shared_layout != NULL) aborting...
> >
> > I've read a posting in this list from someone facing the
> same problem.
> > I followed the advice given to him but unfortunately, I
> didn't succeed. It looks like a permission problem with /tmp/.wapi.
> > The directory ownership was set with apache.apache. That
> resulted in the above errors. Changing the owner to root
> results in this error:
> >
> > /tmp/.wapi: Operation not permitted
> >
> > The test page works just fine with xsp, but I'd like to get
> it to run with Apache...
> >
> > Gonzales mentioned in a post:
> >
> > "Make sure that the user running apache is the same that runs
> > mod-mono-server and owns /tmp/.wapi directory."
> >
> > I'm new to Linux, so please excuse my question:
> > How can I change the account under which the
> mod-mono-server will run?
> > Apache runs under user and group "apache". How can I run
> mod-mono-server under the same account?
> >
> > Any help is greatly appreciated!
> >
> > Regards,
> > André
> > _______________________________________________
> > Mono-list maillist - Mono-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> >
>
>
> --
> Pozdrav / Regards
> Aleksandar
>
More information about the Mono-list
mailing list