Configuring mod_mono in ISPConfig 2.2.13

Discussion in 'Installation/Configuration' started by catdude, Feb 9, 2009.

  1. catdude

    catdude ISPConfig Developer ISPConfig Developer

    I am attempting to configure mod_mono under ISPConfig 2.2.13 running on a Debian Sarge box. I've managed to get mod_mono running on an Ubuntu 8 machine before, but this is my first time trying it on Ubuntu.

    I've installed mono, mono-apache-server2, xsp, and xsp2 via apt-get. I didn't find mod_mono in any available repositories so I built it from source. I can run mod_mono_server from the command line, but when I try to do an AutoHosting configuration as documented at http://www.mono-project.com/AutoHosting I get errors.

    Specifically, I'm seeing:
    [Mon Feb 09 12:03:36 2009] [warn] module mono_module is already loaded, skipping
    [Mon Feb 09 12:03:36 2009] [notice] Apache/2.0.54 (Debian GNU/Linux) mod_mono/2.2 mod_ssl/2.0.54 OpenSSL/0.9.7e PHP/5.2.5-0.dotdeb.0 with Suhosin-Patch mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
    [Mon Feb 09 12:04:07 2009] [error] Failed to connect to mod-mono-server after several attempts to spawn the process.
    in error.log when I restart Apache2 then try to load a simple test.aspx page.

    Can anyone suggest what I might have overlooked in my setup? I've been battling this for a couple of days and would really like to move on to my next task!

    Dan
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    please make sure that you stated the mono server first. mod_mono is just some kind of proxy that redirects the requests to the mono server.
     
  3. catdude

    catdude ISPConfig Developer ISPConfig Developer

    ga:~/xsp-2.2# ps ax | grep mod_mono
    2011 pts/3 T 0:00 /usr/bin/mono /usr/lib/xsp/1.0/mod-mono-server2.exe --filename /tmp/mod_mono_server


    ga:~/xsp-2.2# grep /tmp /etc/mono-server2/*
    /etc/mono-server2/mono-server2-hosts.conf:# MonoUnixSocket /tmp/.mod_mono_server2
    /etc/mono-server2/mono-server2-hosts.conf: MonoUnixSocket /tmp/mod_mono_server_default

    Reloaded apache2, apache2/error.log shows:
    [Tue Feb 10 10:25:36 2009] [notice] Apache/2.0.54 (Debian GNU/Linux) mod_mono/2.2 mod_ssl/2.0.54 OpenSSL/0.9.7e PHP/5.2.5-0.dotdeb.0 with Suhosin-Patch mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations

    Attempt to browse to a very simple aspx page, apache2/error.log says:
    [Tue Feb 10 10:26:40 2009] [error] Failed to connect to mod-mono-server after several attempts to spawn the process.

    and browser displays:
    Service unavailable!

    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

    If you think this is a server error, please contact the webmaster.
    Error 503
    <server IP address>
    Tue Feb 10 10:26:34 2009
    Apache/2.0.54 (Debian GNU/Linux) mod_mono/2.2 mod_ssl/2.0.54 OpenSSL/0.9.7e PHP/5.2.5-0.dotdeb.0 with Suhosin-Patch mod_perl/1.999.21 Perl/v5.8.4


    I also tried this with mod-mono-server running instead of mod-mono-server2, got the same results. I'm finding this very puzzling. I'm sure I've just overlooked something simple, but I keep overlooking it.
     

Share This Page