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
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
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
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
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
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
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
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
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
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
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
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:
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.
List Who ever is in charge of this
list please REMOVE me.Thanksmike lettre
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
-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
>
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
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
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
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
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
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
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
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
Does anyone have a recommended list of reading for someone, from a CGI
background, that wants to get into mod_perl2?
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
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
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
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'
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
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
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
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
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
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
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
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
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
://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
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
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
ht now.
Which version of Perl are you running?
--
Michael Peters
Developer
Plus Three, LP
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
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
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
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
with perl for ages now.
my $cgi = CGI->new();
my $vars = $cgi->Vars();
--
Michael Peters
Developer
Plus Three, LP
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
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
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
e
they're using the same thing.
--
Michael Peters
Developer
Plus Three, LP
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
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
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
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
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
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
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
> 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
> 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
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
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
installed apache2 and mod_perl2
using portage.
Any hints are welcome.
Thank you,
Michael
sr/sbin/apxs2 \
CCFLAGS="${CFLAGS} -fPIC" \
TMPDIR=${T} \
INSTALLDIRS=vendor
--
Does this give any hints?
Thank you,
Michael
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
n is not installed. But I have no idea
how to go on. Any idea?
thanks,
Michael
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
r time, I will post here if there is a solution.
michael
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
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
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
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
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
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;
}
+
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.
>>
>>
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
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
101 - 200 of 668 matches
Mail list logo