Hi all. I'm new to the Apache::ASP module, and am having some issues with it. I recompiled mod_perl against an RPM Apache installation (I know - I should...
Tige D. Chastain
tdchastain@...
Mar 2, 2004 4:40 am
1608
Hello, I needed to make some changes to the Apache::ASP::Server::HTMLEn/Decode subroutines so they would suit a particular purpose in a project I am working...
John Drago
jdrago@...
Mar 2, 2004 4:28 pm
1609
... Hi John, In considering adding this to the Apache::ASP code, I am wondering under what circumstances you would want to do this? For possible inclusion, ...
Josh Chamas
josh@...
Mar 3, 2004 12:59 am
1610
... Hmmm... maybe your mod_perl does not have Apache::Table support compiled in. This might have become a problem ever since Apache::ASP 2.55, when a native ...
Josh Chamas
josh@...
Mar 3, 2004 1:06 am
1611
... Josh, Actually, I thought about that when I recompiled mod_perl from source. I basically enabled everything when I compiled from source. Here are the...
Tige D. Chastain
tdchastain@...
Mar 3, 2004 2:13 am
1612
... You can try adding "PerlModule Apache::Table" to your httpd.conf, but this probably isn't the issue. Does it work? ... Make sure your apache was...
Josh Chamas
josh@...
Mar 3, 2004 2:47 am
1613
... Josh, I did ensure the apache instance was shutdown before recompiling mod_perl from source. Also, when I generated the make file, I absolutely referenced...
Tige D. Chastain
tdchastain@...
Mar 3, 2004 3:02 am
1614
Hi Josh, I took your advice about the optimization and now have the following: (It *is* tested and works). ...
John Drago
jdrago@...
Mar 3, 2004 5:04 pm
1615
I have some code I'd like to run just once when Apache::ASP comes up the first time; it computes a value that never changes over the life of the application....
Warren Young
warren@...
Mar 4, 2004 8:32 am
1616
Hi Warren, Make absolutely sure Apache::ASP is finding your global.asa to start with. Add a Script_OnStart() subroutine that prints something so you know it is...
John Drago
jdrago@...
Mar 4, 2004 2:25 pm
1617
... All the other events I have in there are being called. ... I had mine set to '.', with global.asa at the site's root. I tried setting it to the site...
Warren Young
warren@...
Mar 5, 2004 8:27 am
1618
... Currently, Application_OnStart only runs when the first Session gets initialized, and again after the last Session expires. Theoretically, this could...
Josh Chamas
josh@...
Mar 5, 2004 4:07 pm
1619
Hi, Say hypothetically that I want a certain block of code to run every 5 minutes. Would I... a) fork() off a child process in a script loaded up with a ...
John Drago
jdrago@...
Mar 5, 2004 4:44 pm
1620
... I would advocate (d), because something as precise as needing something done every 5 minutes falls in the domain of cron. Then just running an lwp-request...
Josh Chamas
josh@...
Mar 5, 2004 4:59 pm
1621
... Server_OnStart() ? Peter ... To unsubscribe, e-mail: asp-unsubscribe@... For additional commands, e-mail: asp-help@......
Peter Galbavy
peter.galbavy@...
Mar 5, 2004 9:22 pm
1622
... Here's the closest we have today: http://www.apache-asp.org/events.html#Server_OnSta0d174f59 Basically, any code executed in a global.asa outside of the...
Josh Chamas
josh@...
Mar 5, 2004 9:41 pm
1623
I could formalize this to also ... Would BEGIN {...} take care of this? _______________________________________________________________ John Drago | Chief...
John Drago
jdrago@...
Mar 5, 2004 9:51 pm
1624
... BEGIN should work, but I think Global_OnStart would be more like putting some code at the botton of the global.asa, which would be executed last after...
Josh Chamas
josh@...
Mar 5, 2004 10:00 pm
1625
Okay, this question is probably blindingly obvious, but... If I download the mod_perl module and install it, will my server instantly become asp-enabled (after...
Adam Bishop
TMX@...
Mar 5, 2004 10:05 pm
1626
... Install software in this order: Apache perl mod_perl ( depends on perl & Apache ) Apache::ASP ( depends on mod_perl ) Typical Linux installations already...
Josh Chamas
josh@...
Mar 5, 2004 11:01 pm
1627
... Aha! That's the ticket. If I nuke my StateDir, Application_OnStart() is called right when the first session is created. ... If the current behavior is...
Warren Young
warren@...
Mar 8, 2004 12:41 pm
1628
... This is the right way. All the cron job has to do kick off the event: */5 * * * * wget -O /dev/null http://localhost/dosomething.asp All the code to...
Warren Young
warren@...
Mar 8, 2004 12:51 pm
1629
... I see App*OnStart as very useful, if it is understood by the developer of the application. If for any reason you share application state between mulitple...
Peter Galbavy
peter.galbavy@...
Mar 8, 2004 1:54 pm
1630
... This is a good point, and was the basis for the original implementation, that the application starts when the first visitor registers a session. This was...
Josh Chamas
josh@...
Mar 9, 2004 8:06 am
1631
Global_OnStart sounds good to me. It's good to have a distinction between "this happens when everything is compiled" and "this happens when the application is...
John Drago
jdrago@...
Mar 9, 2004 2:30 pm
1632
... That's reasonable. ... More accurately, the new event would be for calculating something when the web server first comes up. I was able to actually use the...
Warren Young
warren@...
Mar 9, 2004 7:58 pm
1633
... Apache::ASP does not know what applications are installed when the web server first comes up. That is what the Loader() routine is for. Loader() combined...
Josh Chamas
josh@...
Mar 10, 2004 2:15 am
1634
Is anyone aware of work being done to duplicate ASP.NET in an Apache::ASP type of environment? There are several features of ASP.NET I would like to take...
John Drago
jdrago@...
Mar 10, 2004 4:07 pm
1635
... The only one that I know of is Mono, http://developer.ximian.com/projects/mono/ What features of ASP.NET did you want to use? Regards, Josh ...
Josh Chamas
josh@...
Mar 10, 2004 4:10 pm
1636
Hi, I'm not too excited about Mono because I can't use perl with it :) (C# is a fine language, but I want to stick with perl.) What I want is simple enough to...