I'm fairly sure my head is about to explode from frustration here. Any help
would be MUCH appreciated.
I'm trying to get my httpd.conf working with perl../perl, however things
don't seem to be working out.
As soon as I add either $PerlModule or $PerlRequire for any module, apache
seems to try
List,
No matter what I can't understand why the following tiny perl
configuration won't work.
If I comment out $ServerRoot, it works. If I instead comment out
DocumentRoot, it works.
If I comment out $$l, it works. I don't understand :(
Perl
#!perl -w
$ServerRoot =
I'm using a subclass of Error.pm to throw exceptions when a DBI error
happens.
The SEGV only happens after I return SERVER_ERROR in response to the
thrown and propogated error.
This code essentially worked fine 2 weeks ago but at the time I removed my
DBI HandleError subroutine. Today when adding
Nick,
if ($r-lookup_uri($r-uri)-content_type =~ /image/) {
return Apache::DECLINED;
}
Do you have this, or something similar, in your code?
I greped my entire directory tree for any of the subrequest mechanisms
and the only place I am using them are in some handlers
The only thing which it does which is affected by anything outside of its
immediate environment is call, $r-prev. This shouldn't call the
accesshandler though... should it?
Erm, doh, not sure why I said this. This only happens when a 403 happens and
the user is sent to the /login location. So
package AC::Centry::Access;
$AC::Centry::Access::VERSION = qw$Revision: 1.2 $[1];
use strict;
use Apache::Constants qw(:common);
use AC::Centry::Tool();
# handler()
# Process requests to protected URI's
sub handler {
my $r = shift;
my $uri = $r-the_request;
return OK unless
sub handler {
my $r = shift;
my $uri = $r-the_request;
return OK unless $r-is_initial_req; # stops dbl execution
Stops dbl execution _after_ this point, of course. If you request a
directory, the server will return an internal redirect to $dir/index.html
(or whatever) --
Are you using Apache::Cookie?
If so,
#same as $cookie-bake
$r-err_headers_out-add(Set-Cookie = $cookie-as_string);
Are you doing this?
Richard.
- Original Message -
From: Andrew Fritz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 8:24 PM
As soon as I activate the line identified as 'trouble line', my apache
server dies.
Can you elaborate on this.. how does it die?, what is the error msg? etc..
(That is assuming it's still a problem after upgrading to latest
DBI/Apache::DBI as Stas suggested).
Ric.
Hi,
Is there a way, like PHP has ?php phpinfo(); ? , to figure out with
what options a standard linux distribution mod_perl is built ?
I would like to know if it was built with EVERYTHING=1 or if
PERL_CHILD_INIT=1
PerlModule Apache::DBI;-- trouble line
This line belongs in your httpd.conf file.
PerlModule is an apache configuration directive, not a perl 'command'.
http://perl.apache.org/docs/1.0/guide/config.html#PerlModule_and_PerlRequire
_Directives
Ric.
I've never had any reason to do this so there might be a shortcut but I
think something along the lines of the following should work (As long as
your access/auth handler doesnt make use of $r-is_intial_req())
use Apache::Constants (:common);
my $subr = $r-lookup_uri('/new/request/?foo=bar');
my
I'm using FreeBSD 4.7 Release. perl 5.6.1 Mod_Perl/Apache Latest
libapreq 1.1.
Program received signal SIGBUS, Bus error.
0x80b2953 in ap_unescape_url ()
(gdb) bt
#0 0x80b2953 in ap_unescape_url ()
#1 0x8084094 in XS_Apache_unescape_url ()
#2 0x8102623 in Perl_pp_entersub ()
#3 0x80fcf4e in
Stas,
Doesn't seem like an apreq problem. It happens in the modperl function.
Any
chance you can rebuild mod_perl with debug mode enabled (PERL_DEBUG=1), so
we
can see the arguments and file/linenumbers? See:
http://perl.apache.org/docs/1.0/guide/debug.html#PERL_DEBUG_1_Build_Option
I am using an object transhandler like so,
PerlTransHandlerUtil::Tour::Translate-handler
I then have a content handler like so,
Location /banner
SetHandlerperl-script
PerlHandler Util::Tour::Banner
/Location
My content handler is used to select an image
And sent messages about using Windows to a Linux list, and CGI questions
to
mod_perl list and seems to ignore the many requests to read some basic CGI
tutorials. I'd guess troll if he wasn't so clueless. ;)
Since when did mod_perl becomes Linux only?
Richard.
List,
I seem to have hit a slight stumbling block in my mod_perl development.
Without wanting to write a whole essay on the exact combination of events
that causes this segv to happen I'll just say for now that it happens after
my custom Template::Provider returns a status indicating a
List,
Does anyone know why apache ab might segfault when accessing one
particular mod_perl handler on my site? Is this something I could be doing
wrong in my handler (I can't think what.. the page works find in all
browsers).
Richard.
List,
Can anyone tell me if a module exists that combines these two modules so
that, for example, when using Apache::Dispatch one can create an instance of
Apache::Request in the handler without clobbering the overridden methods
sent as part of the Apache::Filter object. Before I try and do
List,
Tired of having 10 modules all with near identical handler methods I
decided to put the handler method into a superclass and be done with
maintaining the same code 10 times. I first tried this a couple of weeks ago
and it failed to work, because at the time I couldn't find the reference
I should add that this segv only happens when using push_handlers like
below. If I put Control::Super::Sub-handler inside a Location tag in
httpd.conf then it is fine.
Ric
- Original Message -
From: Richard Clarke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002
Now I feel stupid. $sub-handler was supposed to be $sub-handler.
That's what you get for being impatient.
Ric
- Original Message -
From: Richard Clarke [EMAIL PROTECTED]
To: Richard Clarke [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 4:08 PM
Subject: Re: OO
/html/metref.htm
http://www.netmechanic.com/news/vol4/promo_no15.htm
etc..
Any one of these should help you solve your problem I think
Thanks in advance ..
Sumitro Chowdhury.
Hope this helps,
Richard Clarke.
List,
You are probably not the best people to ask for an answer which
might advocate PHP,
but.
Can someone who is more proficient in PHP than I (I have used it
for 5 minutes) explain to me why it is quicker to prototype things in PHP?
I can't understand this statement.
Does anyone in the list use any kind of version control (e.g. CVS) for
the perl/template codebase of their website?
Now that my code base is growing I feel the increasing need to provide
better version/backup control than my current hourly crontab tar.
I don't however feel that the
John,
[EMAIL PROTECTED] wrote:
We felt the same way but once we went to CVS we never looked back and
can not imagine going with out source control. It may seem like the
web doesnt fit that paradigm but if you break your modules up properly
it works like a champ.
We broke out into
Hsiao, Chang-Ping wrote:
CVS is easy to use but confusing at first.
This could be the root of my reservations.
Once you get used to it, you should not complain.
I don't quite get your saying I don't however feel that the organizational
logic of a websites code base fits well into the CVS
Jim Martinez wrote:
On Oct 30 Richard Clarke wrote:
Does anyone in the list use any kind of version control (e.g. CVS) for
the perl/template codebase of their website?
Using cvs, I'm not sure of an elegant way to update. I'm worried about
CVS subdirectories sitting under htdocs
harm wrote:
Moi,
a quick question: is it possible to have the 'same' dbh across the apache
children even if you do your best not to?
This minimalistic handler:
use strict;
package Foo;
use Apache::DBI;
use DBI;
use Apache::Constants qw':common';
my $dbh;
You haven't initialised this, so
List,
Before I embark on a day exploring the pros and cons of today's
cleaning/compression tools, I wondered if any of you could give me some
feedback about your own experiences within the context of medium/large scale
web sites/applications (E-Toys etc).
Is it too presumtious to expect that
My IP is from the netherlands apparently :(
Can't even get quality british IP's these days... sheesh
Ric(England).
If you're doing it because hacking perl is fun and you're in no rush, then
go ahead and have a good time.
And if so, would you like to swap jobs?
please?
Rich
List,
http://www.newsfactor.com/perl/story/19716.html
...sigh?
Ric
List,
I came across http://www.firstworks.com/sqlrelay.html the other day.
Have any of you come across this product before. With the whole problem
of providing seemless recovery at the client side from database
failure this tool seems quite productive. I've not used it but figured
maybe
Perrin Harkins wrote:
Richard Clarke wrote:
I came across http://www.firstworks.com/sqlrelay.html the other
day. Have any of you come across this product before.
It's been discussed here before (see the archives) but no one has
talked about any real experience with it yet. Try
Dave,
Perhaps this is why from the eagle book,
During the child exit phase, mod_perl invokes the Perl API function
perl_destruct( ) to run the contents of END blocks and to invoke the
DESTROY method for any global objects that have not gone out of scope
already.
So I think i'm
http://thingy.kcilink.com/modperlguide/snippets/Reusing_Data_from_POST_reque
st.html
- Original Message -
From: Tim Sebastian Böckers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 01, 2002 2:24 PM
Subject: Fwd: Re: param trouble
Thanks to everyone giving their hints and
List,
Without wanting to fire up a huge thread about MVC seperation etc etc. I
just wondered if someone would share their expertise on the following
question.
Using Perrin's article on E-Toys is perhaps a good place to start. In the
Model object which performs various DB procedures, what
List,
I find the following situation one which arises many times for me when
creating modperl applications for people. However, I always find myself
thinking there is a better way to do it. I wondered if the list would like
to share their thoughts on the best way. It concerns storing and
I am an idiot. Please ignore the previous post.
Richard :(
- Original Message -
From: Richard Clarke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 2:00 AM
Subject: (browser bug) Internet Explorer AuthCookie and others
List,
I just wanted to post to see
List,
I have the task in my hands of creating a web mail application. Initial
thoughts lead me to think I would use an external popper to pop mail and
parse it into a database for retrieval by the modperl application. The only
problem here is that I must provide the implementation of the mail
List,
Before I present a detailed description of the problem I thought I'd
just bounce of an intro to see if its a common fault.
I have found, using apache 1.x latest and mod_perl 1.x latest that if I use
internal redirection to a mod_perl handler for ErrorDocument 500
(server_error) then
You could migrate to a database based mail authentication solution.
Postfix+cyrus springs to mind.
Ric
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, May 19, 2002 9:56 AM
Subject: Re: Scripts and passwd
Hello
Thanks for the reply. Yes this server
Why don't you just set your maximum child requests to a reasonable number
and have them restart themselves after they have executed what you would
call enough requests to need flushing.
Ric.
- Original Message -
From: Jim Morrison [Mailinglists] [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Are you also processing the posted data at some earlier request stage? It
doesn't sound like you would be but I thought I would ask.
Richard
- Original Message -
From: Mike Melillo
To: [EMAIL PROTECTED]
Sent: Tuesday, May 14, 2002 5:22 PM
Subject: $r-args vs $r-content
Ok, I've
that too :)
- Original Message -
From: Bart Frackiewicz [EMAIL PROTECTED]
To: Richard Clarke [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, May 03, 2002 4:15 PM
Subject: Re: SOAP and web services
Hi Ric,
I use mod_perl/apache/soap::lite to create an internal
application server
Are you sure soap is what you want?. Just because SOAP uses XML to encode
the parameters and data which it transmits doesnt necessarily mean you want
that same format sent to the user. Why would you not have a normal mod perl
content handler execute whatever procedures are necessary to get the
Can someone tell me why theApache::UTIL
escape_uri() functiondoesnt escape the '+' character.
I need to pass a base64 string as a query string
but I can't do this unless + is changed to %2B.
Should I just translate it manually...are there any
other chars I should be translating manually?
Hi Guys,
Can someone suggest a good method for debugging the server portion of
soaplite applications when used in a mod perl context.
Debugging in the sense that I want to print out strings to apache log or
similar.
Ric
49 matches
Mail list logo