mod_mono on Gentoo [was Re: [Mono-list] Re: [Mono-hackers-list] Re: Patch for mcs]

William E. Kempf wek-lists@kempfville.com
Thu, 4 Nov 2004 13:20:51 -0600 (CST)


Sorry, there was supposed to have been a subject change with my original
post.  Not sure how I screwed it up.

William E. Kempf said:
> I've installed mod_mono and required packages on Gentoo, using the Gent=
oo
> ebuilds.  I've got everything configured correctly, AFAIK. Here's my
> 70_mod_mono.conf file.
>
> <IfDefine MONO>
>   <IfModule !mod_mono.c>
>     LoadModule mono_module extramodules/mod_mono.so
>   </IfModule>
>
>   <IfModule mod_mime.c>
>     AddHandler mono .aspx .ashx .asmx .ascx .asax .config .ascx
>   </IfModule>
>
>   MonoUnixSocket /tmp/mod_mono_server
>   MonoRunXSP True
>
>   # Uncomment this block to enable the xsp samples
>   <IfModule mod_alias.c>
>     Alias /mono "/usr/share/doc/xsp/test"
>   </IfModule>
>   MonoApplications "/mono:/usr/share/doc/xsp/test"
>   <Directory /usr/share/doc/xsp/test>
>     SetHandler mono
>     <IfModule mod_access.c>
>         Order allow,deny
>         Allow from all
>     </IfModule>
>     <IfModule mod_dir.c>
>         DirectoryIndex index.aspx
>     </IfModule>
>   </Directory>
> </IfDefine>
>
> Attempts to connect to /mono returns "Service Temporarily Unavailable".
> The apache error_log only contains a line "[error] Failed connecting. N=
o
> such file or directory".  Checking ps gives:
>
> $ ps aux | grep mod-mono-server.exe
> apache   14969  0.0  3.5 37748 7844 ?        S    16:04   0:00
> /usr/bin/mono /usr/bin/mod-mono-server.exe --filename /tmp/mod_mono_ser=
ver
> --applications /mono:/usr/share/doc/xsp/test --nonstop
> apache   14970  0.0  1.3 17080 3080 ?        Ss   16:04   0:00
> /usr/bin/mono /usr/bin/mod-mono-server.exe --filename /tmp/mod_mono_ser=
ver
> --applications /mono:/usr/share/doc/xsp/test --nonstop
> apache   14971  0.0  3.5 37748 7844 ?        S    16:04   0:00
> /usr/bin/mono /usr/bin/mod-mono-server.exe --filename /tmp/mod_mono_ser=
ver
> --applications /mono:/usr/share/doc/xsp/test --nonstop
> apache   14972  0.0  3.5 37748 7844 ?        S    16:04   0:00
> /usr/bin/mono /usr/bin/mod-mono-server.exe --filename /tmp/mod_mono_ser=
ver
> --applications /mono:/usr/share/doc/xsp/test --nonstop
> apache   14973  0.0  3.5 37748 7844 ?        S    16:04   0:00
> /usr/bin/mono /usr/bin/mod-mono-server.exe --filename /tmp/mod_mono_ser=
ver
> --applications /mono:/usr/share/doc/xsp/test --nonstop
> wekempf  15193  0.0  0.2  1432  524 pts/3    R+   16:11   0:00 grep
> mod-mono-server.exe
>
> I tried to run mod-mono-server.exe manually, and received an error
> indicating it couldn't create /home/httpd/.wapi.  Not surprising, since
> /home/httpd doesn't exist.  To further test, I created this directory, =
and
> I was then able to start mod-mono-server.exe manually, and pages then
> display.  Stopping this process, killing all other mod-mono-server.exe
> processes and restarting apache results in my still not being able to
> access any ASPX pages.  No /tmp/mod_mono_server file is created.
>
> I'm at the end of my diagnosing capabilities.  Why does
> mod_mono_server.exe appear to start 5 times, but no /tmp/mod_mono_serve=
r
> file is created and ASPX pages can't display?
>
> --
> William E. Kempf
>
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


--=20
William E. Kempf