Re: [Mono-list] getting started

2004-05-24 Thread Adam Jacob
On Mon, 2004-05-24 at 16:22, Darren Crotchett wrote:
> I'm trying to give mono a try.  My questions in a nutshell is, "Where should I 
> start?"  Is there a page for Mono newbies?

How about where not to?

Like, maybe...

> 
> No offense to anyone, but in my opinion, the web page is a horrible mess.  
> Everything seems to be thrown together with no thought as to how someone new 
> to mono might approach learning it.
> 
> There are 88 (yes, I counted them) links on the left hand side of the page 
> http://www.go-mono.com/compiling.html.  That's just down the left hand side 
> of the page.  There are 6 more links on the top of the page and who knows how 
> many scattered throughout the page.  Many of the links are not descriptive.  
> 
> Somebody with some organizational skills really needs to work on this page.
> 
> Sometimes the state of Linux and Open Source in general seems so advanced.  
> And, at other times, it's like in its infancy.  Stuff like the following 
> really gets on my nerves:
> 
> [EMAIL PROTECTED] src]# rpm -ivh ifolder-0.8.20040521-1.i686.rpm
> error: Failed dependencies:
> addressbook = 0.8.20040521 is needed by ifolder-0.8.20040521-1
> simias = 0.8.20040521 is needed by ifolder-0.8.20040521-1
> mono-core >= 0.91 is needed by ifolder-0.8.20040521-1
> mono-data >= 0.91 is needed by ifolder-0.8.20040521-1
> mono-posix >= 0.91 is needed by ifolder-0.8.20040521-1
> mono-remoting >= 0.91 is needed by ifolder-0.8.20040521-1
> mono-nunit >= 0.91 is needed by ifolder-0.8.20040521-1
> gtk-sharp >= 0.91 is needed by ifolder-0.8.20040521-1
> 

Is a bad idea.  

For future reference, the "right" thing to do here would be to take the
experiences your having right now trying to get mono to work for you,
and writing them down.  Use that as a starting point for a better
installation process, and submit that back to the project.  Take a stab
at using what you learn to rebuild the documents you refer to above.

You get what you give, my friend. :)

For what it's worth, the final part of your rant is easily resolved: try
installing the dependencies.  Or use a utility like apt, yum, or Red
Carpet to resolve them for you automatically.  

> My apologies for the rants.  I realize that they might offend some and will 
> not likely generate good helpful responses to my question, but sometimes you 
> just have to get crap off your chest.

I hear you.  Probably not in the same message as a request for aid, but
hey, to each their own.

Adam
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] ASP.NET/Mono/SUSE 9/Apache 2

2004-05-14 Thread Adam Jacob
I got far enough that I could get a compiled from source Apache2 to load
mod_mono.  I could even get it to build if I rebuilt Apache2 using the
same command line options as the SuSE RPM.

However, if I compiled mod_mono against the stock SuSE build, and
attempted to load it, I got no joy.  It's more than a permissions issue,
(although you should make sure that the wwwrun user has proper
permissions to /usr/share/doc/xsp/test, which it does by default.  Also
make sure that wwwrun is the owner of /tmp/mod_mono_socket and
/tmp/.wapi) and it appears to have something specific to do with the way
SuSE is building and/or distributing apache2.

Sorry I don't have an answer for you, but that's as far as I got before
other priorities came calling. :)

Adam


On Fri, 2004-05-14 at 09:44, Keith Murray wrote:
> Looking through the archives, it appears that there is a problem with
> mod_mono and SUSE9/Apache2. I wonder if anyone has resolved this.
> 
> I tried the latest mono and mod_mono with the Apache2. Following the
> instructions, the best I could get was the .aspx page returned to the
> browser without being processed. I uninstalled the Apache2 RPM's and built
> Apache2 from source. I end up with the same results. I'm sure mod_mono is
> loading, but it appears to not be processing the pages.
> 
> I'd be happy to debug the problem in Apache and mod_mono if someone can give
> me some hints on how to best setup Apache for debugging. I turned on the
> debugging in mod_mono.c and got some messages on startup. But after that,
> nothing to the screen or apache log files.
> 
> Thanks,
> _
> Keith Murray
> Senior Software Engineer
> 
> Leonine Development Services, Inc.
> 
> ___
> Mono-list maillist  -  [EMAIL PROTECTED]
> http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Adam Jacob  Cell (206) 619-7151
Sr. Systems Engineer, Corporate Infrastructure and Applications 
  InfoSpace, Inc.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mod_mono on SuSE 9 apache2

2004-05-11 Thread Adam Jacob
After compiling apache2 by hand, using the instructions given in the
mod_mono INSTALL file, mod_mono seems to work fine.

Using the same config file with the regular SuSE 9 apache build causes
the symptoms described below.

I'm poking around at the SuSE apache build to see what the deal is..

Adam

On Mon, 2004-05-10 at 16:05, Adam Jacob wrote:
> Doht.
> 
> Okay, so now that I'm paying attention, would that not mean that Apache
> is saying this request isn't destined for this handler, so mod_mono
> doesn't try and do it's thing on it?
> 
> Adam
> 
> On Mon, 2004-05-10 at 15:43, Adam Jacob wrote:
> > It appears that mod_mono is not registering the handler...
> > 
> > In mod_mono.c, if I change it to this:
> > 
> > static int
> > mono_handler (request_rec *r)
> > {
> > DEBUG_PRINT (1, "registering my handler, %s", r->handler);
> > if (strcmp (r->handler, "mono")) {
> > DEBUG_PRINT (1, "registering my handler, declined");
> > return DECLINED;
> > }
> > 
> > DEBUG_PRINT (1, "handler: %s", r->handler);
> > return mono_execute_request (r);
> > }
> > 
> > It indeed returns declined.  The resulting debug message:
> > 
> > [Mon May 10 15:42:31 2004] [warn] registering my handler, x/\x14\b\x0c
> > [Mon May 10 15:42:31 2004] [warn] registering my handler, declined
> > 
> > Is what I get when I hit:
> > 
> > http://localhost/mono/index.aspx
> > 
> > And apache returns the source of the aspx.
> > 
> > I assume that's not normal?
> > 
> > Adam
> > 
> > On Mon, 2004-05-10 at 14:32, Adam Jacob wrote:
> > > On Mon, 2004-05-10 at 13:18, Gonzalo Paniagua Javier wrote:
> > > 
> > > > > Does anybody have this working with the apache2 prefork mpm on SuSE 9? 
> > > > > Am I just being a moron? (Likely!)  
> > > > 
> > > > I just tried the same lines that you have (but i run apache2 as a
> > > > non-privileged user and on port 8080) and it worked fine. I can only
> > > > think of permissions problems...
> > > 
> > > What should the permissions be?
> > > 
> > > I can see the content, as it does show me the raw aspx pages. 
> > > mod-mono-server.exe is 755, as is /usr/bin/mono.  
> > > 
> > > ?
> > > 
> > > Adam
-- 
Adam Jacob  Cell (206) 619-7151
Sr. Systems Engineer, Corporate Infrastructure and Applications 
  InfoSpace, Inc.

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] mod_mono on SuSE 9 apache2

2004-05-11 Thread Adam Jacob
I'm having trouble getting mod_mono 0.9 running with the stock SuSE 9
apache2.  Using all the rpm's from mono beta 1, and mod_mono compiled
against the apache2-prefork in SuSE 9. Including a config that looks
like the following from /etc/apache2/conf.d:

LoadModule mono_module /usr/lib/apache2/libmod_mono.so
Alias /mono "/usr/share/doc/xsp/test"
MonoApplications "/mono:/usr/share/doc/xsp/test"
MonoRunXSP True
MonoUnixSocket "/tmp/mod_mono_server"
MonoExecutablePath "/usr/bin/mono"
MonoServerPath "/usr/bin/mod-mono-server.exe"


SetHandler mono
Order allow,deny
Allow from all


When I hit http://localhost/mono/index.aspx, I get the raw source.. no
spawning of mod-mono-server.exe, no creation of /tmp/mod_mono_server. 
Also nothing shows up in the error log, besides a regular page request.

Does anybody have this working with the apache2 prefork mpm on SuSE 9? 
Am I just being a moron? (Likely!)  

Thanks in advance!

Adam

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mod_mono on SuSE 9 apache2

2004-05-10 Thread Adam Jacob
Doht.

Okay, so now that I'm paying attention, would that not mean that Apache
is saying this request isn't destined for this handler, so mod_mono
doesn't try and do it's thing on it?

Adam

On Mon, 2004-05-10 at 15:43, Adam Jacob wrote:
> It appears that mod_mono is not registering the handler...
> 
> In mod_mono.c, if I change it to this:
> 
> static int
> mono_handler (request_rec *r)
> {
>   DEBUG_PRINT (1, "registering my handler, %s", r->handler);
>   if (strcmp (r->handler, "mono")) {
>   DEBUG_PRINT (1, "registering my handler, declined");
>   return DECLINED;
>   }
> 
>   DEBUG_PRINT (1, "handler: %s", r->handler);
>   return mono_execute_request (r);
> }
> 
> It indeed returns declined.  The resulting debug message:
> 
> [Mon May 10 15:42:31 2004] [warn] registering my handler, x/\x14\b\x0c
> [Mon May 10 15:42:31 2004] [warn] registering my handler, declined
> 
> Is what I get when I hit:
> 
> http://localhost/mono/index.aspx
> 
> And apache returns the source of the aspx.
> 
> I assume that's not normal?
> 
> Adam
> 
> On Mon, 2004-05-10 at 14:32, Adam Jacob wrote:
> > On Mon, 2004-05-10 at 13:18, Gonzalo Paniagua Javier wrote:
> > 
> > > > Does anybody have this working with the apache2 prefork mpm on SuSE 9? 
> > > > Am I just being a moron? (Likely!)  
> > > 
> > > I just tried the same lines that you have (but i run apache2 as a
> > > non-privileged user and on port 8080) and it worked fine. I can only
> > > think of permissions problems...
> > 
> > What should the permissions be?
> > 
> > I can see the content, as it does show me the raw aspx pages. 
> > mod-mono-server.exe is 755, as is /usr/bin/mono.  
> > 
> > ?
> > 
> > Adam
-- 
Adam Jacob  Cell (206) 619-7151
Sr. Systems Engineer, Corporate Infrastructure and Applications 
  InfoSpace, Inc.

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mod_mono on SuSE 9 apache2

2004-05-10 Thread Adam Jacob
It appears that mod_mono is not registering the handler...

In mod_mono.c, if I change it to this:

static int
mono_handler (request_rec *r)
{
DEBUG_PRINT (1, "registering my handler, %s", r->handler);
if (strcmp (r->handler, "mono")) {
DEBUG_PRINT (1, "registering my handler, declined");
return DECLINED;
}

DEBUG_PRINT (1, "handler: %s", r->handler);
return mono_execute_request (r);
}

It indeed returns declined.  The resulting debug message:

[Mon May 10 15:42:31 2004] [warn] registering my handler, x/\x14\b\x0c
[Mon May 10 15:42:31 2004] [warn] registering my handler, declined

Is what I get when I hit:

http://localhost/mono/index.aspx

And apache returns the source of the aspx.

I assume that's not normal?

Adam

On Mon, 2004-05-10 at 14:32, Adam Jacob wrote:
> On Mon, 2004-05-10 at 13:18, Gonzalo Paniagua Javier wrote:
> 
> > > Does anybody have this working with the apache2 prefork mpm on SuSE 9? 
> > > Am I just being a moron? (Likely!)  
> > 
> > I just tried the same lines that you have (but i run apache2 as a
> > non-privileged user and on port 8080) and it worked fine. I can only
> > think of permissions problems...
> 
> What should the permissions be?
> 
> I can see the content, as it does show me the raw aspx pages. 
> mod-mono-server.exe is 755, as is /usr/bin/mono.  
> 
> ?
> 
> Adam
-- 
Adam Jacob  Cell (206) 619-7151
Sr. Systems Engineer, Corporate Infrastructure and Applications 
  InfoSpace, Inc.

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mod_mono on SuSE 9 apache2

2004-05-10 Thread Adam Jacob
On Mon, 2004-05-10 at 13:18, Gonzalo Paniagua Javier wrote:

> > Does anybody have this working with the apache2 prefork mpm on SuSE 9? 
> > Am I just being a moron? (Likely!)  
> 
> I just tried the same lines that you have (but i run apache2 as a
> non-privileged user and on port 8080) and it worked fine. I can only
> think of permissions problems...

What should the permissions be?

I can see the content, as it does show me the raw aspx pages. 
mod-mono-server.exe is 755, as is /usr/bin/mono.  

?

Adam

-- 
Adam Jacob  Cell (206) 619-7151
Sr. Systems Engineer, Corporate Infrastructure and Applications 
  InfoSpace, Inc.

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] mod_mono on SuSE 9 apache2

2004-05-10 Thread Adam Jacob
I'm having trouble getting mod_mono 0.9 running with the stock SuSE 9
apache2.  Using all the rpm's from mono beta 1, and mod_mono compiled
against the apache2-prefork in SuSE 9. Including a config that looks
like the following from /etc/apache2/conf.d:

LoadModule mono_module /usr/lib/apache2/libmod_mono.so
Alias /mono "/usr/share/doc/xsp/test"
MonoApplications "/mono:/usr/share/doc/xsp/test"
MonoRunXSP True
MonoUnixSocket "/tmp/mod_mono_server"
MonoExecutablePath "/usr/bin/mono"
MonoServerPath "/usr/bin/mod-mono-server.exe"


SetHandler mono
Order allow,deny
Allow from all


When I hit http://localhost/mono/index.aspx, I get the raw source.. no
spawning of mod-mono-server.exe, no creation of /tmp/mod_mono_server. 
Also nothing shows up in the error log, besides a regular page request.

Does anybody have this working with the apache2 prefork mpm on SuSE 9? 
Am I just being a moron? (Likely!)  

Thanks in advance!

Adam

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list