[Mono-list] Re: [Mono-hackers-list] Re: Patch for mcs

Gonzalo Paniagua Javier reply.to.the.list.iam.suscribed@notexists.ximian.com
Mon, 08 Nov 2004 17:13:24 -0500


On Thu, 2004-11-04 at 12:17 -0600, William E. Kempf wrote:
> I've installed mod_mono and required packages on Gentoo, using the Gentoo
> 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. No
> 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_server
> --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_server
> --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_server
> --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_server
> --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_server
> --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_server
> file is created and ASPX pages can't display?

Is that a MPM worker apache?

-Gonzalo