[Mono-list] mod_mono 0.6 issues on SuSe 9.0

Gonzalo Paniagua Javier gonzalo@ximian.com
Wed, 17 Dec 2003 05:22:25 +0100


El mié, 17-12-2003 a las 04:00, Jim Erwin escribió:
> I am running SuSe 9.0 with the most recent updated Apache 2 packages
> installed. I have downloaded, configured, and compiled the following
> tarballs:
> 
> mono-0.29.tar.gz
> mcs-0.29.tar.gz
> xsp-0.8.tar.gz
> mod_mono-0.6.tar.gz
> 
> I have everything configured with a prefix of /usr/local
> 
> The way the configuration files for Apache are set up in SuSe 9.0 is
> rather funky. I have attempted to make modifications in the appropriate
> config files for all of the entries listed by the INSTALL file in the
> mod_mono tarball, but eventually removed them from inidividual config
> files and added them to a config file that gets placed at the end of the
> configuration for your custom entries (httpd.local.conf) and included
> this with the appropriate directives in the apache configuration.
> 
> 
> AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config
> .ascx
> LoadModule mono_module /usr/lib/apache2/mod_mono.so
> MonoUnixSocket /tmp/mod_mono_server
> Alias /mono "/usr/share/doc/xsp/test"

That should be "/usr/local/share/doc/xsp/test" for you, right?

> 
> After dealing with various permissions issues in the way the default
> configuration of apache is set up on SuSe 9.0, I got to a point where I
> had everything set up correctly (according to the documentation). I
> start mod-mono-server with the following line.
> 
> mono /usr/local/bin/mod-mono-server.exe --root
> /usr/local/share/doc/xsp/test --applications
> /mono:/usr/local/share/doc/xsp/test
> 
> I verified that the configuration points correctly to
> /tmp/mod-mono-server for the socket. I set the permissions on that file
> to 777 after starting mod-mono-server.exe. The message from
> mod-mono-server.exe gives me the impression that it all starts and
> points to the right places. Unfortunately, if I try to pull up
> http://localhost/mono/index.aspx It prompts me to open or save the file.
> If I open, it shows me the source of the aspx file. It's as if a handler
> never gets set up for sending the requests to the socket file. I thought
> just loading the mono module 
> 
> The requests generate no errors in the apache error log. I just don't
> get my requests compiled and parsed as an asp.net page should be.
> 
> Suggestions on how to get this to work would be appreciated.

Apart from that, make sure that all the directories in the path
/usr/local/share/doc/xsp/test are +rx for the user running apache and
all the files in there too.

-Gonzalo