[Mono-list] mod_mono on a custom environment
Alberto Avi
alberto.avi at gmail.com
Tue Jun 28 04:58:38 EDT 2005
Hi Gonzalo,
I spent the last three nights to install mono and mod_mono
on my Fedora Core 3 Linux Box. I've one big problem.
mod_mono don't work correctly. Can you help me ?
The objective is to have a web server as front end on one linux box
and a mono backend through TCP/IP connection between mod_mono and xsp
on another linux box. I tried this
configuration on the same machine as first step.
This are the steps:
*** Apache 2.0.54
./configure --prefix=/usr/local/httpd-2.0.54 --enable-so --with-apxs
make
make install
*** Mono
./configure --prefix=/usr/local/mono-1.1.8.1
make
make install
*** Xsp
./configure --prefix=/usr/local/xsp-1.0.9
make
make install
*** mod_mono
./configure --prefix=/usr/local/mod_mono-1.0.9
--with-apxs=/usr/local/httpd-2.0.54/bin/apxs --enable-debug
--with-mono-prefix=/usr/local/mono-1.1.8.1
make
make install
All the compiling/installing phases are ok.
The Apache web server is working with this definition:
...
LoadModule mono_module modules/mod_mono.so
Listen 8888
<VirtualHost *:8888>
ServerName mono.usinet.it
ErrorLog logs/mono.err
CustomLog logs/mono.log common
DocumentRoot /var/www/mono
MonoListenAddress "127.0.0.1"
MonoListenPort "2222"
MonoRunXSP True
MonoWapiDir "/tmp/wapi"
MonoExecutablePath "/usr/local/mono-1.1.8.1/bin/mono"
MonoServerPath "/usr/local/xsp-1.0.9/bin/mod-mono-server"
MonoDebug True
Alias /test "/var/www/mono"
AddMonoApplications myapp "/test:/var/www/mono"
<Location /test>
SetHandler mono
Options +Indexes
</Location>
</VirtualHost>
...
When I try to connect to http://127.0.0.1:8888/test/index.aspx I
received http error 503.
This is the Apache error log file:
[Tue Jun 28 10:37:20 2005] [warn] creating dir config for (null)
[Tue Jun 28 10:37:20 2005] [warn] Initializing handler
[Tue Jun 28 10:37:20 2005] [warn] Mono Child Init
[Tue Jun 28 10:37:20 2005] [warn] errno in try_connect 111 Connection refused
[Tue Jun 28 10:37:20 2005] [warn] try_connect: -1
[Tue Jun 28 10:37:20 2005] [warn] forking default
[Tue Jun 28 10:37:20 2005] [warn] Applications: (null)
[Tue Jun 28 10:37:20 2005] [warn] Config file: (null)
[Tue Jun 28 10:37:20 2005] [warn] Config dir.: (null)
[Tue Jun 28 10:37:20 2005] [error] Not running mod-mono-server.exe because no
MonoApplications, MonoApplicationsConfigFile or MonoApplicationC
onfigDir specified.
[Tue Jun 28 10:37:20 2005] [warn] Socket file name /tmp/mod_mono_server_myapp
[Tue Jun 28 10:37:20 2005] [warn] errno in try_connect 2 No such file or
directory
[Tue Jun 28 10:37:20 2005] [warn] try_connect: -1
[Tue Jun 28 10:37:20 2005] [warn] forking myapp
[Tue Jun 28 10:37:20 2005] [warn] Applications: /test:/var/www/mono
[Tue Jun 28 10:37:20 2005] [warn] Config file: (null)
[Tue Jun 28 10:37:20 2005] [warn] Config dir.: (null)
[Tue Jun 28 10:37:20 2005] [warn] Listen port: (null)
[Tue Jun 28 10:37:20 2005] [warn] Listen address: (null)
[Tue Jun 28 10:37:20 2005] [warn] Mono Child Init
[Tue Jun 28 10:37:20 2005] [warn] errno in try_connect 111 Connection refused
[Tue Jun 28 10:37:20 2005] [warn] try_connect: -1
[Tue Jun 28 10:37:20 2005] [warn] forking default
[Tue Jun 28 10:37:20 2005] [warn] Applications: (null)
[Tue Jun 28 10:37:20 2005] [warn] Config file: (null)
[Tue Jun 28 10:37:20 2005] [warn] Config dir.: (null)
[Tue Jun 28 10:37:20 2005] [error] Not running mod-mono-server.exe because no
MonoApplications, MonoApplicationsConfigFile or MonoApplicationC
onfigDir specified.
[Tue Jun 28 10:37:20 2005] [warn] Socket file name /tmp/mod_mono_server_myapp
[Tue Jun 28 10:37:20 2005] [warn] errno in try_connect 2 No such file or
directory
[Tue Jun 28 10:37:20 2005] [warn] try_connect: -1
[Tue Jun 28 10:37:20 2005] [warn] forking myapp
[Tue Jun 28 10:37:20 2005] [warn] Applications: /test:/var/www/mono
[Tue Jun 28 10:37:20 2005] [warn] Config file: (null)
[Tue Jun 28 10:37:20 2005] [warn] Config dir.: (null)
[Tue Jun 28 10:37:20 2005] [warn] Listen port: (null)
[Tue Jun 28 10:37:20 2005] [warn] Listen address: (null)
[Tue Jun 28 10:37:20 2005] [warn] child started
[Tue Jun 28 10:37:20 2005] [warn] PATH:
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr
/X11R6/bin:/usr/local/mono-1.1.8.1/bin:/root/bin:/usr/local/mono-1.1.8.1/bin
[Tue Jun 28 10:37:20 2005] [warn] monodir: /usr/local/mono-1.1.8.1//bin
[Tue Jun 28 10:37:20 2005] [warn] serverdir:
/usr/local/mono-1.1.8.1//lib/mono/1.0
[Tue Jun 28 10:37:20 2005] [warn] PATH after:
/usr/local/mono-1.1.8.1//bin:/usr/local/mono-1.1.8.1//lib/mono/1.0:/usr/kerberos/sbin:/usr/kerbe
ros/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/mono-1.1.8.1/bin:/root/bin:/usr/local/mono-1.1.
8.1/bin
[Tue Jun 28 10:37:20 2005] [warn] Mono Child Init
[Tue Jun 28 10:37:20 2005] [warn] errno in try_connect 111 Connection refused
[Tue Jun 28 10:37:20 2005] [warn] try_connect: -1
[Tue Jun 28 10:37:20 2005] [warn] forking default
[Tue Jun 28 10:37:20 2005] [warn] Applications: (null)
[Tue Jun 28 10:37:20 2005] [warn] Config file: (null)
[Tue Jun 28 10:37:20 2005] [warn] Config dir.: (null)
[Tue Jun 28 10:37:20 2005] [error] Not running mod-mono-server.exe because no
MonoApplications, MonoApplicationsConfigFile or MonoApplicationC
onfigDir specified.
[Tue Jun 28 10:37:20 2005] [warn] Socket file name /tmp/mod_mono_server_myapp
[Tue Jun 28 10:37:20 2005] [warn] errno in try_connect 2 No such file or
directory
[Tue Jun 28 10:37:20 2005] [warn] try_connect: -1
[Tue Jun 28 10:37:20 2005] [warn] forking myapp
[Tue Jun 28 10:37:20 2005] [warn] Applications: /test:/var/www/mono
[Tue Jun 28 10:37:20 2005] [warn] Config file: (null)
[Tue Jun 28 10:37:20 2005] [warn] Config dir.: (null)
[Tue Jun 28 10:37:20 2005] [warn] Listen port: (null)
[Tue Jun 28 10:37:20 2005] [warn] Listen address: (null)
[Tue Jun 28 10:37:20 2005] [warn] child started
[Tue Jun 28 10:37:20 2005] [warn] PATH:
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr
/X11R6/bin:/usr/local/mono-1.1.8.1/bin:/root/bin:/usr/local/mono-1.1.8.1/bin
[Tue Jun 28 10:37:20 2005] [warn] monodir: /usr/local/mono-1.1.8.1//bin
[Tue Jun 28 10:37:20 2005] [warn] serverdir:
/usr/local/mono-1.1.8.1//lib/mono/1.0
[Tue Jun 28 10:37:20 2005] [warn] PATH after:
/usr/local/mono-1.1.8.1//bin:/usr/local/mono-1.1.8.1//lib/mono/1.0:/usr/kerberos/sbin:/usr/kerbe
ros/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/mono-1.1.8.1/bin:/root/bin:/usr/local/mono-1.1.
8.1/bin
[Tue Jun 28 10:37:20 2005] [warn] Mono Child Init
[Tue Jun 28 10:37:20 2005] [warn] errno in try_connect 111 Connection refused
[Tue Jun 28 10:37:20 2005] [warn] try_connect: -1
[Tue Jun 28 10:37:20 2005] [warn] forking default
[Tue Jun 28 10:37:20 2005] [warn] Applications: (null)
[Tue Jun 28 10:37:20 2005] [warn] Config file: (null)
[Tue Jun 28 10:37:20 2005] [warn] Config dir.: (null)
[Tue Jun 28 10:37:20 2005] [error] Not running mod-mono-server.exe because no
MonoApplications, MonoApplicationsConfigFile or MonoApplicationC
onfigDir specified.
[Tue Jun 28 10:37:20 2005] [warn] Socket file name /tmp/mod_mono_server_myapp
[Tue Jun 28 10:37:20 2005] [warn] errno in try_connect 2 No such file or
directory
[Tue Jun 28 10:37:20 2005] [warn] try_connect: -1
[Tue Jun 28 10:37:20 2005] [warn] forking myapp
[Tue Jun 28 10:37:20 2005] [warn] Applications: /test:/var/www/mono
[Tue Jun 28 10:37:20 2005] [warn] Config file: (null)
[Tue Jun 28 10:37:20 2005] [warn] Config dir.: (null)
[Tue Jun 28 10:37:20 2005] [warn] Listen port: (null)
[Tue Jun 28 10:37:20 2005] [warn] Listen address: (null)
[Tue Jun 28 10:37:20 2005] [warn] child started
[Tue Jun 28 10:37:20 2005] [warn] PATH:
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr
/X11R6/bin:/usr/local/mono-1.1.8.1/bin:/root/bin:/usr/local/mono-1.1.8.1/bin
[Tue Jun 28 10:37:20 2005] [warn] monodir: /usr/local/mono-1.1.8.1//bin
[Tue Jun 28 10:37:20 2005] [warn] serverdir:
/usr/local/mono-1.1.8.1//lib/mono/1.0
[Tue Jun 28 10:37:20 2005] [warn] PATH after:
/usr/local/mono-1.1.8.1//bin:/usr/local/mono-1.1.8.1//lib/mono/1.0:/usr/kerberos/sbin:/usr/kerbe
ros/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/mono-1.1.8.1/bin:/root/bin:/usr/local/mono-1.1.
8.1/bin
[Tue Jun 28 10:37:20 2005] [notice] Apache/2.0.54 (Unix) mod_mono/1.0.9
configured -- resuming normal operations
[Tue Jun 28 10:37:20 2005] [info] Server built: Jun 24 2005 15:38:43
[Tue Jun 28 10:37:20 2005] [debug] prefork.c(956): AcceptMutex: sysvsem
(default: sysvsem)
[Tue Jun 28 10:37:20 2005] [warn] child started
[Tue Jun 28 10:37:20 2005] [warn] PATH:
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr
/X11R6/bin:/usr/local/mono-1.1.8.1/bin:/root/bin:/usr/local/mono-1.1.8.1/bin
[Tue Jun 28 10:37:20 2005] [warn] monodir: /usr/local/mono-1.1.8.1//bin
[Tue Jun 28 10:37:20 2005] [warn] serverdir:
/usr/local/mono-1.1.8.1//lib/mono/1.0
[Tue Jun 28 10:37:20 2005] [warn] PATH after:
/usr/local/mono-1.1.8.1//bin:/usr/local/mono-1.1.8.1//lib/mono/1.0:/usr/kerberos/sbin:/usr/kerbe
ros/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/mono-1.1.8.1/bin:/root/bin:/usr/local/mono-1.1.
8.1/bin
[Tue Jun 28 10:37:20 2005] [warn] Mono Child Init
[Tue Jun 28 10:37:20 2005] [warn] errno in try_connect 111 Connection refused
[Tue Jun 28 10:37:20 2005] [warn] try_connect: -1
[Tue Jun 28 10:37:20 2005] [warn] forking default
[Tue Jun 28 10:37:20 2005] [warn] Applications: (null)
[Tue Jun 28 10:37:20 2005] [warn] Config file: (null)
[Tue Jun 28 10:37:20 2005] [warn] Config dir.: (null)
[Tue Jun 28 10:37:20 2005] [error] Not running mod-mono-server.exe because no
MonoApplications, MonoApplicationsConfigFile or MonoApplicationC
onfigDir specified.
[Tue Jun 28 10:37:20 2005] [warn] Socket file name /tmp/mod_mono_server_myapp
[Tue Jun 28 10:37:20 2005] [warn] errno in try_connect 2 No such file or
directory
[Tue Jun 28 10:37:20 2005] [warn] try_connect: -1
[Tue Jun 28 10:37:20 2005] [warn] forking myapp
[Tue Jun 28 10:37:20 2005] [warn] Applications: /test:/var/www/mono
[Tue Jun 28 10:37:20 2005] [warn] Config file: (null)
[Tue Jun 28 10:37:20 2005] [warn] Config dir.: (null)
[Tue Jun 28 10:37:20 2005] [warn] Listen port: (null)
[Tue Jun 28 10:37:20 2005] [warn] Listen address: (null)
[Tue Jun 28 10:37:20 2005] [warn] child started
[Tue Jun 28 10:37:20 2005] [warn] PATH:
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr
/X11R6/bin:/usr/local/mono-1.1.8.1/bin:/root/bin:/usr/local/mono-1.1.8.1/bin
[Tue Jun 28 10:37:20 2005] [warn] monodir: /usr/local/mono-1.1.8.1//bin
[Tue Jun 28 10:37:20 2005] [warn] serverdir:
/usr/local/mono-1.1.8.1//lib/mono/1.0
[Tue Jun 28 10:37:20 2005] [warn] PATH after:
/usr/local/mono-1.1.8.1//bin:/usr/local/mono-1.1.8.1//lib/mono/1.0:/usr/kerberos/sbin:/usr/kerbe
ros/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/mono-1.1.8.1/bin:/root/bin:/usr/local/mono-1.1.
8.1/bin
cannot open assembly /usr/local/mono-1.1.8.1//lib/mono/1.0/mod-mono-server.exe
cannot open assembly /usr/local/mono-1.1.8.1//lib/mono/1.0/mod-mono-server.exe
cannot open assembly /usr/local/mono-1.1.8.1//lib/mono/1.0/mod-mono-server.exe
cannot open assembly /usr/local/mono-1.1.8.1//lib/mono/1.0/mod-mono-server.exe
cannot open assembly /usr/local/mono-1.1.8.1//lib/mono/1.0/mod-mono-server.exe
I don't understand why mod_mono try to contact
/usr/local/mono-1.1.8.1//lib/mono/1.0/mod-mono-server.exe .
In the Apache config file I forced the correct path to
/usr/local/xsp-1.0.9/bin/mod-mono-server .
Can you give me some hope ?
Thanks a lot.
Alberto.
More information about the Mono-list
mailing list