Re: Apache::DBI How tro tell if enabled

2005-09-29 Thread Michael Peters
nable debugging the variable $Apache::DBI::DEBUG must be set. This can either be done in startup.pl or in the user script. Setting the variable to 1, just reports about a new connect. Setting the variable to 2 enables full debug output. -- Michael Peters Developer Plus Three, LP

Re: redirecting

2005-10-01 Thread Michael Hall
Content-Length: 290 Content-Type: text/html; charset=iso-8859-1 302 Found Found The document has moved here. Apache Server at localhost Port 80 Michael

Re: GlobaRequest, restart_count, and RequestUtil

2005-10-04 Thread Michael Peters
3/mod/mod_unique_id.html http://httpd.apache.org/docs/2.0/mod/mod_unique_id.html It even works well in clusters because it take hostnames into consideration. And no stray temp files :) -- Michael Peters Developer Plus Three, LP

Re: ModPerl::PerlRun CGI.pm SSI

2005-10-06 Thread Michael Peters
t into a cleanup handler in the first place, so it's run after the output has been sent to the browser). But you may be able to convince Lincoln to make the method public and documented so that it won't get ripped out from under you some day. -- Michael Peters Developer Plus Three, LP

Re: how to share data among modperl processes

2005-10-07 Thread Michael Hall
system or even a different programming language! Michael On 10/7/05, Foo Ji-Haw <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have a simple need where a process can take minutes to complete. But I > want to display some progress bar of sorts to the user. > > My idea is t

Logging loops with mod_perl1/apache1/amd64

2005-10-25 Thread Michael Renner
perl has done some work causes a logging loop after a few tries. Do you have any ideas what might cause this or what else I should test? -- best regards, Michael Renner - Network services Preisvergleich Internet Services AG Obere Donaustraße 63/2, A-1020 Wien Tel: +43 1 5811609 80 Fax: +43 1 5811609 55

segmentation fault after installing mod_perl2

2005-10-26 Thread Michael Greenish
Hello, I am trying to migrate from mod_cgi to mod_perl. My system is as follows: linux suse 9.2 (installed via rpm from suse) apache2-mod_php4-4.3.8-8.9 apache2-2.0.50-7.3 apache2-devel-2.0.50-7.3 apache2-prefork-2.0.50-7.3 apache2-mod_perl-2.0.1-2.1 I added the 'LoadModule perl_module /usr/li

Re: is_intial_req

2005-11-01 Thread Michael Peters
sections.html, it seems that Location will always take precedence over FilesMatch regardless of their order. Order only matters in the precedence of similar tags. -- Michael Peters Developer Plus Three, LP

[Question / Newbie]

2005-11-02 Thread Michael Preslar
First.. This is my first post to the list.. I hope that I'm not asking something thats already been answered. If I have, please point me in the right direction, and I'll gratefully go where needed. And sorry for the length of the email.. I tried to be as verbose as I could so if someone could h

Re: Mod_perl2 too greedy on memory

2005-12-09 Thread Michael Peters
he and mod_perl. I don't know about Suse, but I've heard anectdotes of people getting as much as 30% increase in speed with compiling their own with just the defaults on RH systems. -- Michael Peters Developer Plus Three, LP

apache::session not writing to db

2005-12-18 Thread Michael Greenish
Hello, This seems be a rather basic problem but I haven't found the solution in the last several hours and have run out of ideas. I am using MP2 with Apache::Session 1.80. I have created a session object class so I can keep the retrieving of the session out of my main code. The session is calle

Re: apache::session not writing to db

2005-12-18 Thread Michael Greenish
tabase. I couldn't track down the location of the MySQL binary files to see if an actual update is being performed. And I killed and restarted Apache2 just in case. --- Malcolm J Harwood <[EMAIL PROTECTED]> wrote: > On Sunday 18 December 2005 02:31 pm, Michael > Greenish wrote:

Two Problems: fatalsToBrowser and ./

2005-12-19 Thread Michael Saller
a way to write errors to the Browser and the Apache-log? 2nd: My ./-dir is eq to my docroot now. Is there an easy way to get the path, where the script is? (any other than substitueing around with $ENV{SCRIPT_FILENAME}?) Ok, that's it. Thanks in advance, Michael Saller.

Fw: remove me from the list

2005-12-21 Thread Michael Lettre
  List Who ever is in charge of this list please REMOVE me.Thanksmike lettre

Request is Apache2::RequestRec with undef ->server!!

2005-12-25 Thread Michael McLagan
is. I'll pass on what results I get from removing references to %ENV, but I'd like to hear any input that may be out there. Private messages are fine, be sure to add +reply to my address to get past our sometimes overly aggressive filtering. Thanks, Michael This i

Re: Adding customs httpd.conf data in mod_perl 2.0

2005-12-30 Thread Michael Peters
on of Apache/mod_perl/mod_ssl and any needed Perl modules so that the admin/user doesn't have to think about any of that. A user could build their own app from source or download a binary built for their platform. -- Michael Peters Developer Plus Three, LP

[mp2] make error (alpha platform) - fails on link

2006-01-03 Thread Fox, Michael
1. Problem Description: make fails at last step - link flags seem to be wrong: ld -shared -expect_unresolved "*" -O4 -msym -std -s -L/usr/local/lib mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo modperl

RE: [mp2] make error (alpha platform) - fails on link

2006-01-04 Thread Fox, Michael
the fact I use the tru64 cc compiler, not gcc. I'll try fiddling with config_heavy.pl as you suggested, but I am not sure what to change it to Thanks, Michael -Original Message- From: Philip M. Gollucci [mailto:[EMAIL PROTECTED] Sent: Thursday, 05 January 2006 3:12 AM To: Fox, Michae

[mp2] make error (alpha platform) - fails on link - workaround

2006-01-05 Thread Fox, Michael
ollucci [mailto:[EMAIL PROTECTED] Sent: Thursday, 05 January 2006 3:12 AM To: Fox, Michael Cc: 'modperl@perl.apache.org' Subject: Re: [mp2] make error (alpha platform) - fails on link Fox, Michael wrote: > 1. Problem Description: > > make fails at last step - link flags seem

modperl not recognizing array reference

2006-01-12 Thread Michael Greenish
Hello, This should be very easy but apache is not letting me do this. I have a list of file names stored in an array. The list is created as follows: push @resizeList, $img->{path} . $img->{file}; The list is passed to a package via a new method as follows: my $imageResize = Ishare::Clas

RE: modperl not recognizing array reference

2006-01-12 Thread Michael Greenish
Since I am passing a reference to an anonymous hash when calling the new method, the @_ only contains one element, that reference. The '$objRef = shift;' in the constructor brings the hash ref into the function. When I print out the $self in my resize function, I see the list, so it definitely ex

Re: modperl not recognizing array reference

2006-01-12 Thread Michael Greenish
an 12, 2006 at 11:09:32AM -0800, Michael > Greenish wrote: > > > sub resizeImgs { > > my $self = shift; > > foreach my $file( @$self->{resize_list} ) { > > ... > > > > I get the following error: > > > > Not an ARRAY reference at

Re: Patch for Apache::DBI v 0.9901 under MP2 using prefork

2006-01-28 Thread Michael Peters
t off, connect to the database and then turn it back on with something like: use Apache::DBI; use DBI: BEGIN{ $DBI::connect_via = 'connect_cached'; }; # do your stuff $dbh->disconnect(); $DBI::connect_via = 'Apache::DBI::connect'; -- Michael Peters Developer Plus Three, LP

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-02 Thread michael . peppler
rate a *new* connection *if* the driver thinks that the $dbh is currently active (ie has an active $sth) - DBD::Sybase in particular, but I suspect that other drivers that don't support multiple active statements on a single physical connection will have the same behavior. Michael This message

Re: Clarifying Q: Usage suggestions: caching DB metadata with mod_perl?

2006-02-05 Thread Michael Peters
e sense to have some sort of form builder/validator class > > At the risk of making some people here cringe, in my projects I do > something like Looks like you're trying to reinvent Data::FormValidator. -- Michael Peters Developer Plus Three, LP

Re: modperl and DBI or DBD with mysql

2006-02-05 Thread Michael Peters
d display. But even better is to step through the code with the Perl debugger - http://perl.apache.org/docs/1.0/guide/debug.html#Interactive_mod_perl_Debugging -- Michael Peters Developer Plus Three, LP

Re: modperl and DBI or DBD with mysql

2006-02-05 Thread Michael Peters
an be done the same as from the command line, so something is really weird with your setup. > I think I hate modperl I'm not sure I blame you, but wouldn't it be nice to find out why this is happening since it doesn't happen to anyone else? -- Michael Peters Developer Plus Three, LP

Re: interactive debuging modperl2 using Apache::DB

2006-02-06 Thread Michael Peters
You need to start apache in single process mode and not detach it from the terminal like so: httpd -X -D PERLDB Look at http://perl.apache.org/docs/1.0/guide/debug.html#Interactive_mod_perl_Debugging -- Michael Peters Developer Plus Three, LP

Re: Need to clean MySQL handle attributes with persistant handle?

2006-02-13 Thread Michael Peters
ipt finishes without an explicit rollback, the Apache::DBI module uses a PerlCleanupHandler to issue a rollback at the end of every request. So if you're using Apache::DBI then everything should be ok. Else, you'll need you're own similar PerlCleanupHandler. HTH -- Michael Peters Developer Plus Three, LP

Re: Why is err_header_out needed to set cookies when redirecting?

2006-02-15 Thread Michael Peters
the guide without finding an explaination that made sense. > > Would anyone mind explaining this to me? Anything that does not return an OK is considered an 'error', so it won't send the normal header_out() stuff. -- Michael Peters Developer Plus Three, LP

Re: A question for the newbies

2006-02-16 Thread Michael Greenish
I've been writing in perl for just over a year. I was a developer in embedded controls, but had an idea for a website and some free time so started learning perl. I had a strong C++ background so understood OO pretty well. I chose Perl because I had heard so much about it. My first site was pur

Re: A question for the newbies

2006-02-16 Thread Michael Peters
Some selective answers...(not really relevant to your present job, but maybe more helpful in the future) Michael Greenish wrote: > I looked around on the web for a while, tried > to study the modperl apache site's examples, but just > couldn't derive a good code example; I

ANNOUNCE - Smolder 0.01

2006-03-04 Thread Michael Peters
http://sourceforge.net/project/screenshots.php?group_id=161136 And other details here: http://sourceforge.net/projects/smolder/ While completely functional, this is an alpha release so it is not feature complete. -- Michael Peters Developer Plus Three, LP

external redirect after internal redirect not working

2006-03-21 Thread Michael Greenish
Hello, I am attempting an external redirect after an internal redirect and it isn't working. Below are code excerpts: use strict; use DBI; use Apache2::RequestRec(); use APR::Table(); use CGI; $CGI::POST_MAX=1024 * 1024; # max 1M posts $CGI::DISABLE_UPLOADS = 0; # change to 1 to disable uploa

Re: external redirect after internal redirect not working

2006-03-22 Thread Michael Greenish
hanks, greanie --- Tom Schindl <[EMAIL PROTECTED]> wrote: > Fred Moyer wrote: > > Michael Greenish wrote: > >> use strict; > > [..] > > > >> # redirect > >> $r->headers_out->set( Location => $redirectURL ); > >> $r->status( RE

Re: external redirect after internal redirect not working

2006-03-22 Thread Michael Greenish
another way to perform the redirect in registry mode? > Michael Greenish wrote: > > I am working in modperl::registry (not writing my > own > > handlers) and I found this recipe on the modperl > > website: > > > > > http://perl.apache.org/docs/2.0/user/coding/cooking.

Re: Using Apache Module for Homepage Handler

2006-03-28 Thread Michael Peters
ing new (CGI::Application) try CGI::Application::Dispatch. In the interest of full disclosure I'm the author of CGI::Application::Dispatch, so I am partial to it :) -- Michael Peters Developer Plus Three, LP

Re: Nested Interpolation

2006-03-31 Thread Michael Peters
gnored. It can't possibly through an error since there are a million different things that might look kinda like a variable, but aren't really. -- Michael Peters Developer Plus Three, LP

[mp2] $req->main->is_initial_req == 0 ???

2006-04-03 Thread Michael McLagan
-8<-- Start Bug Report 8<-- 1. Problem Description: I'm not sure if this is my interpretation of the documentation or a real problem with the code. The documentation says: > If the current request is a sub-request, this method returns a >

retrieving the anchor tags in internal redirects

2006-04-21 Thread Michael Peters
ev->args; Which works fine except that the anchor info (#123) is lost. Is there anyway to get this from the original request's URL? -- Michael Peters Developer Plus Three, LP

Re: retrieving the anchor tags in internal redirects

2006-04-21 Thread Michael Peters
Frank Wiles wrote: > On Fri, 21 Apr 2006 11:49:19 -0400 > Michael Peters <[EMAIL PROTECTED]> wrote: > >> I have a application with mod_perl Authen/Authz handlers that will >> redirect to a login screen (via ErrorDocument) if the user is not >> logged in. Users

Re: retrieving the anchor tags in internal redirects

2006-04-21 Thread Michael Peters
wser (tried with FF 1.5 and wget) doesn't pass the #fragment. If this is true, why do we even have these methods in Apache::URI ? -- Michael Peters Developer Plus Three, LP

ANNOUNCE: Apache::AuthCookie 3.09

2006-05-03 Thread Michael Schout
The uploaded file Apache-AuthCookie-3.09.tar.gz has entered CPAN as file: $CPAN/authors/id/M/MS/MSCHOUT/Apache-AuthCookie-3.09.tar.gz size: 34908 bytes md5: 8bfd8834d2b161f2e28c908c27eccf10 Please allow a few hours for the file to mirror across CPAN :). Apache::AuthCookie allows you

Re: mod_proxy_add_forward

2006-05-04 Thread Michael Schout
David Romero wrote: > Hi > I need the client ip on a backend server. Plain old mod_proxy will pass along the ip in an X-Forwarded-For header. Regards, Michael Schout

Re: mod_proxy_add_forward

2006-05-06 Thread Michael Schout
of apache 1.3, but it is definitely in there now (confirmed in src/modules/proxy/proxy_http.c in 1.3.33 sources, and I make use of it in production :)). I'm not sure when this became part of standard mod_proxy, but its definitely there now in 1.3 and in Apache 2 :). Regards, Michael Schout

Re: Rookie question: executable file types.

2006-05-11 Thread Michael Peters
you have to list out all of the stuff that should work normally. I prefer to move my application a directory down. Something like this: SetHandler perl-script PerlHandler Apache::Registry And then the rest of the stuff should work normally. -- Michael Peters Developer Plus Three, LP

Re: mp 1.99_12: my() var retains value in subroutine, ideas?

2006-05-18 Thread Michael Peters
deprecated poor-man's static variable technique. Perl 5.10 should have real static variables. I make it a rule to never do conditional declaration to avoid just this problem. my $cust_id = $app->get_session_var('id') || ""; my ($sub_rec, $uid_int); $sub_rec = $app->get_subscriber_rec($custid) if($custid); $uid_int = $sub_rec->{'uid_int'} if($sub_rec); -- Michael Peters Developer Plus Three, LP

CGI -> mp2 -> Recommended Beginners guide

2006-05-26 Thread Michael Preslar
Does anyone have a recommended list of reading for someone, from a CGI background, that wants to get into mod_perl2?

[ANNOUNCE] Apache-AuthCookie 3.10

2006-06-04 Thread Michael Schout
The uploaded file Apache-AuthCookie-3.10.tar.gz has entered CPAN as file: $CPAN/authors/id/M/MS/MSCHOUT/Apache-AuthCookie-3.10.tar.gz size: 34993 bytes md5: 8dd9f4a3db329c378f5e5b394c05b5b3 Changes: Version: 3.10 - Bug Fix: when copying user from prev request, check that $r->prev

Apache::Constants

2006-06-07 Thread Michael Preslar
I'm running on a shared server, running mod perl 1.29.. (Cant upgrade) Apache::Constants does not exist, and CPAN wont install without upgrading mod_perl (which I cant do).. What other modules might I be missing, and what are my options for obtaining them? -- Michael Preslar

RE: Apache::Constants (and now startup script)

2006-06-07 Thread Michael Preslar
s had to say was : websrvmng: Service httpd failed to start Any ideas? -- Michael Preslar Engineer Sonitier Landline: (402) 614-3551 Cell: (402) 990-8001 -Original Message- From: Patrick Rutkowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 3:50 PM To: Michael P

external redirect after internal redirect not working

2006-06-22 Thread Michael Greenish
27; ) { $log->log( $user . " redirecting to " . $redirectURL ); $r->headers_out->set( Location => $redirectURL ); $r->status( REDIRECT ); return REDIRECT; } } 1; Any one have any ideas why the redirects from internal redirects don'

Re: MP2 Script within another script AND via SSI

2006-07-11 Thread Michael Peters
ir traffic 2-3x because it broke all of the caching happening at browsers, routers and proxies. If the content is truly dynamic, then it's a good solution. If it's content that rarely changes, pre-generation is probably a better solution. -- Michael Peters Developer Plus Three, LP

Re: Apache::Resource not killing children, hanging

2006-07-25 Thread Michael Peters
lly the recommended approach. http://perl.apache.org/docs/1.0/guide/scenario.html#One_Plain_and_One_mod_perl_enabled_Apache_Servers -- Michael Peters Developer Plus Three, LP

Re: duplicate trees, different handlers

2006-07-28 Thread Michael Peters
e same name loaded at anyone time. The easiest solution is to just run 2 apaches. Configure pre-prod for a different port. You can even run them from the same apache binary, just give them different configs to start off. httpd -f conf/httpd.conf httpd -f conf/preprod-httpd.conf -- Michael Peters Developer Plus Three, LP

Re: Location, filename, path_info

2006-07-31 Thread Michael Peters
s the value, else it removes the part that is a real file/directory. If you want a virtual directory, make sure that there are no real directories of the same name. -- Michael Peters Developer Plus Three, LP

Re: Fwd: Install and error Can't locate loadable object for module Apache::Constants

2006-07-31 Thread Michael Peters
Davood Firoozian wrote: > I have mod_perl 2 and Apache::Soap but problem persist Do you have Apache::SOAP or Apache2::SOAP? Randy suggested Apache2::SOAP. -- Michael Peters Developer Plus Three, LP

Re: handlers

2006-08-01 Thread Michael Peters
ication::Dispatch if you want a to you CGI::Application to structure your project. And CGI::Application::Dispatch does this in a secure way, so you can control which modules can be mapped to URL and it's pretty flexible too. -- Michael Peters Developer Plus Three, LP

Re: handlers [OT]

2006-08-01 Thread Michael Peters
John ORourke wrote: > > Michael Peters wrote: > >> John ORourke wrote: >> >> >>> You could even do something really clever and make it map URI onto >>> module - eg. so /debitor/contract/create calls >>> Debitor::Contract->create(), but

permission on document root

2006-08-11 Thread Michael Greenish
Hello, I am having problems with permissions when only the web url is typed into the browser. I know this should be just an apache config issue I have two sites being served on this server and they both have the same configuration in the vhost file. One site uses mod_perl and has problems, the

status() vs constants

2006-08-12 Thread Michael Peters
I'd rather not have to check every possible status() value in a huge if/else tree to return the right constant, but I guess I will if there's no other choice. Please tell me there's an easier way. Thanks, -- Michael Peters Developer Plus Three, LP

[ANNOUNCE] Smolder 0.3 (1.0 RC1)

2006-08-16 Thread Michael Peters
://sourceforge.net/projects/smolder Thanks to Mark Stosberg and Sam Tregar for the help and for Plus Three, LP for sponsoring my work on this, as well as providing guinea pigs. -- Michael Peters Developer Plus Three, LP

Re: acceptable memory leaks?

2006-08-16 Thread Michael Peters
s when memory is used and then lost and can't be recovered. If the process can still access or use that memory, it's not a leak, it's just memory growth. Leaks should be completely eliminated. Growth should be managed. -- Michael Peters Developer Plus Three, LP

Re: mod_perl comforts

2006-08-17 Thread Michael Peters
lready exist for every request. This will also improve caching since it can cache all of the templates in memory. -- Michael Peters Developer Plus Three, LP

Re: acceptable memory leaks?

2006-08-17 Thread Michael Peters
ht now. Which version of Perl are you running? -- Michael Peters Developer Plus Three, LP

Re: acceptable memory leaks?

2006-08-17 Thread Michael Peters
havior) , thats awesome. Most of the problems seem to be with syntactically incorrect string evals, not code evals, since code evals are compiled when the rest of it is compiled anyways. -- Michael Peters Developer Plus Three, LP

Re: use mod_info and mod_status via mod_perl?

2006-08-22 Thread Michael Peters
er the custom authorization level my site assigns when a user logs >> in. > > Oops, I meant to say "... because I don't want to control access based on IP > address, but rather ..." I'm confused as to yhy can't you just the custom auth you already have? Just use PerlAuth*Handler directives. -- Michael Peters Developer Plus Three, LP

Re: use mod_info and mod_status via mod_perl?

2006-08-22 Thread Michael Peters
h* is in modules that will work as PerlAuth*Handlers then you're good to go. If you do something custom then you'll have to change it or keep using subrequests. -- Michael Peters Developer Plus Three, LP

Re: Best Practices Question

2006-08-29 Thread Michael Peters
e write OO code not for it's efficiency, but for the organizational benefits for the developers. I know run() and new() are pretty generic names, but out of curiosity, are you using CGI::Application? -- Michael Peters Developer Plus Three, LP

Re: Receiving user input

2006-08-31 Thread Michael Peters
with perl for ages now. my $cgi = CGI->new(); my $vars = $cgi->Vars(); -- Michael Peters Developer Plus Three, LP

Re: MOD_PERL - Apache2 configuration issue

2006-09-12 Thread Michael Peters
Sumit Shah wrote: >#Open a file for writing >open(FH, "> test.txt") or die $!; >print FH "Hello World !!!\n"; print can fail. You should check that it's succeeding: print FH "Hello World !!!\n" or die $!; -- Michael Peters Developer Plus Three, LP

Re: design patters with mod_perl

2006-09-13 Thread Michael Greenish
I definitely recommend using a template engine and using an Model-View-Controller (MVC) framework; the template engine helps with the view part. I was first introduced to it on the tutorials under documentation on perl.apache.org. It took me a little while to figure out how to create & instantiate

Re: hmm..testing with mod_perl and lwp

2006-09-19 Thread Michael Peters
inst testing for a specific structure and just testing for the data. But hopefully most of the markup is abstracted enough that most UI changes are done in the style sheets. Even with this irritant, these kind of tests have caught many bugs for me that straight unit-testing would not have found. -- Michael Peters Developer Plus Three, LP

Re: Occasional problems with URI package under mp

2006-09-19 Thread Michael Peters
e they're using the same thing. -- Michael Peters Developer Plus Three, LP

Re: Occasional problems with URI package under mp

2006-09-19 Thread Michael Peters
same script print? Do you have "/usr/lib/perl5/Apache2" in your @INC? If so, you shouldn't (I believe that was an old 1.99 thing before the change into the Apache2 namespace). -- Michael Peters Developer Plus Three, LP

Re: dir_config -- sanity required. (Restated)

2006-09-23 Thread Michael Peters
CS running. There's no way to do this under Apache/mod_perl (that I'm aware of). So either run 2 different Apaches, or put the modules into their own namespaces. Instead of "package Foo" do "package ClientA::Foo". -- Michael Peters Developer Plus Three, LP

Re: MP2 + Business::OnlinePayment::PayflowPro

2006-09-27 Thread Michael Peters
environment variables that can only be set from the parent process (security). So in whatever script you use to start/stop apache put it in there. -- Michael Peters Developer Plus Three, LP

Re: Apache::DBI and pnotes

2006-10-02 Thread Michael Peters
will take care of all that checking for you and make sure you have a connection (if one can be made). -- Michael Peters Developer Plus Three, LP

Re: Apache::DBI and pnotes

2006-10-02 Thread Michael Peters
Jonathan Vanasco wrote: > > On Oct 2, 2006, at 4:01 PM, Michael Peters wrote: > >> The main problem with this is that if you loose your db connection >> somehow, you >> wouldn't know until it bombed out on you unless you constantly check it >> everytime be

apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
Hello, I just added apache2::reload to config & handlers, classes, packages for my application. However, everywhere I have "return OK", I get an error: "Not a CODE reference at /http/greanie/IndexHandler.pm on ..." and request returns the page and a 500 error (in browser, I see rendered page

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
06, at 10:59 AM, Michael Greenish wrote: > Hello, > > I just added apache2::reload to config & handlers, classes, > packages for my application. However, everywhere I have "return > OK", I get an error: > > "Not a CODE reference at /http/greanie/Index

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
> Do you import OK from Apache2::Const in your script? If you don't > return OK, do you still have that message? > - Perrin I do import the constants: use Apache2::Const qw( OK FORBIDDEN REDIRECT :log ); When I don't return OK, I got an error as well but not from the handler (i.e. no

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
> I also had to make the follow addition to my config file: > >PerlInitHandler Apache2::Reload >PerlSetVar ReloadAll Off > > I never figured out how to check if it was actually picking up changes > on its own. > > For now, I have reverted to not using Apache2::Reload, which is kind

Re: apache2::reload causing 500 errors on return statement

2006-10-23 Thread Michael Greenish
ot; in the top of my module? Is that why I am getting the error on my return OK call? - Original Message From: Philippe M. Chiasson <[EMAIL PROTECTED]> To: Michael Greenish <[EMAIL PROTECTED]> Cc: modperl@perl.apache.org Sent: Friday, October 20, 2006 7:31:13 PM Subject: Re: apach

Re: status code / constant question

2006-10-23 Thread Michael Peters
wser eventually gets). mod_perl 1 tried to make it easy by translating a '200' that was returned by a handler into a '0', but it was really just covering mistakes by developers (me included). -- Michael Peters Developer Plus Three, LP

Weak references, problem with apache2/mod_perl2

2006-11-08 Thread Michael Frankl
installed apache2 and mod_perl2 using portage. Any hints are welcome. Thank you, Michael

Re: Weak references, problem with apache2/mod_perl2

2006-11-09 Thread Michael Frankl
sr/sbin/apxs2 \ CCFLAGS="${CFLAGS} -fPIC" \ TMPDIR=${T} \ INSTALLDIRS=vendor -- Does this give any hints? Thank you, Michael

Re: [mp2] PAR in production?

2006-11-09 Thread Michael Peters
ll the other components? It's problematic because perl is not relocatable. But Nicolas Clark's work will make 5.10 relocatable and thus possible to bundle a custom build of perl with the application. -- Michael Peters Developer Plus Three, LP

Re: Weak references, problem with apache2/mod_perl2

2006-11-10 Thread Michael Frankl
n is not installed. But I have no idea how to go on. Any idea? thanks, Michael

Re: [mp2] PAR in production?

2006-11-10 Thread Michael Peters
u move your perl around, @INC doesn't change. Having it be truly relocatable means that the binary can find libraries relative to it's installation rather than being a full path. After reading some archives it seems that ActivePerl may already be able to do this, but I'm not sure. -- Michael Peters Developer Plus Three, LP

Re: Weak references, problem with apache2/mod_perl2

2006-11-10 Thread Michael Frankl
r time, I will post here if there is a solution. michael

Re: PerlAuthenHandler mod_perl 2.0.2, apache 2.2.2 & 2.2.3 problem

2006-11-14 Thread Michael Peters
Iván Chavero wrote: > my mod_perl copile flags are this: > > perl Makefile.PL MP_APXS=/usr/local/apache-2.2.2/bin/apxs you need EVERYTHING=1 there, or specifically turn on PERL_AUTHEN, PERL_AUTHZ, PERL_ACCESS individually. -- Michael Peters Developer Plus Three, LP

Re: PerlAuthenHandler mod_perl 2.0.2, apache 2.2.2 & 2.2.3 problem

2006-11-14 Thread Michael Peters
Philip M. Gollucci wrote: > Michael Peters wrote: >> >> Iván Chavero wrote: >> >>> my mod_perl copile flags are this: >>> >>> perl Makefile.PL MP_APXS=/usr/local/apache-2.2.2/bin/apxs >> >> you need EVERYTHING=1 there, or spe

Re: [RFC] Apache2::Filter::TagAware

2006-11-17 Thread Michael Peters
PAN does have it's share of redundant modules, but since you've not had anyone tell you that this problem was already solved, I'd say it's a candidate. -- Michael Peters Developer Plus Three, LP

Re: Module code being truncated with modperl 1.29 and apache 1.3.36

2006-11-22 Thread Michael Peters
appreciated. I've never seen anything like this before. Does it happen with all of your modules or just some of them. Are you using source filters? Or are you using modules with source filters (like Switch)? -- Michael Peters Developer Plus Three, LP

Re: Module code being truncated with modperl 1.29 and apache 1.3.36

2006-11-22 Thread Michael Peters
Richard Foley wrote: > On Wednesday 22 November 2006 16:21, Michael Peters wrote: >> I've never seen anything like this before. Does it happen with all of your >> modules or just some of them. >> > I'm only noticing it with a couple of modules out o

Re: retrieving cached connections

2006-11-29 Thread Michael Peters
ed. Something as simple as the attached patch should work. -- Michael Peters Developer Plus Three, LP --- DBI.pm.old 2006-11-29 14:30:56.0 -0500 +++ DBI.pm 2006-11-29 14:32:05.0 -0500 @@ -15,6 +15,10 @@ $modperl::VERSION < 1.99) { require Apache; } +

Re: retrieving cached connections

2006-11-30 Thread Michael Peters
Larry Leszczynski wrote: > > On Wed, 29 Nov 2006, Michael Peters wrote: > >> Maybe you could have Apache::DBI issue a warning if it's being loaded >> and DBI has already been loaded. Something as simple as the attached >> patch should work. >> >>

Re: light+ssl/heavy and conf management

2006-12-04 Thread Michael Peters
ut it into the templates, generate the configs and restart the apaches. For an example of this, check out Krang - http://krang.sourceforge.net -- Michael Peters Developer Plus Three, LP

Re: Doubt in References and complex datastructures

2006-12-11 Thread Michael Peters
te the "string" not "hash" part of the warning. I suspect your $doc var is undefined. It's the only thing I can see that is a string. -- Michael Peters Developer Plus Three, LP

<    1   2   3   4   5   6   7   >