Edward,
Instead of just "./configure", you'll need to do
"./configure --with-apache-includes=/usr/include/httpd"
(assuming that's where your apache headers are).
That'll get you farther, anyway.
Joe, maybe this could be added as a default for Darwin or something?
-Ken
On Tuesday, November 2
On Tuesday, November 26, 2002, at 05:24 PM, Joe Schaefer wrote:
Ken Williams <[EMAIL PROTECTED]> writes:
[...]
I got through "./configure -> make -> make install"
successfully, installing to /usr/local/lib/ and
/usr/local/include/. However, there doesn't se
On Tuesday, November 26, 2002, at 12:22 PM, Joe Schaefer wrote:
Ken Williams <[EMAIL PROTECTED]> writes:
[...]
I've attached the full output.
Thanks, Ken. I looked over the result, but didn't see any
indication that you used the "./configure -> make -> make ins
Hi Joe & APReq,
I'm glad this is receiving attention, Apache::Request has had
some trouble on OS X as I'm sure you're aware. I just tested
the RC, using:
perl 5.6.1
Apache/1.3.26 (as shipped with the OS, uses dso)
OS X 10.1.5
and I get this error in 'make test':
dyld: t/httpd multiple def
Great, the CVS version passes all tests for me now when built
under 'perl Makefile.PL EVERYTHING=1' using apache 1.3.24.
On Tuesday, May 21, 2002, at 07:19 AM, Doug MacEachern wrote:
> On Sun, 28 Apr 2002, Ken Williams wrote:
>
>>
>> Insecure dependenc
Hi,
I was thinking of writing yet-another-photo-album-server, and I
had the idea that I'd write a handler to serve resized versions
of JPEGs (very original, I know ;-). The idea is that I'd put a
bunch of JPEGs on the server at locations like foo/123.jpg , and
then if a request came for foo/
On Wednesday, May 1, 2002, at 06:46 AM, OCNS Consulting wrote:
> Of course "srand" seeds "rand". And yes, it is a good way to generate
> random numbers for a one time application RUN.
The original poster is not looking for "random", he's looking
for "unique". These are in many ways *opposite*
On Wednesday, May 1, 2002, at 05:04 AM, Fran Fabrizio wrote:
>
> I spoke too soon.
>
> I need:
>
>
> push @Alias, [ qw(/cgi-bin/chimpkit/ $ENV{SERVER_ROOT}/cgi-
> bin/chimpkit/) ];
>
>
> This does not appear to be possible because there's no way to
> pass in SERVER_ROOT to the apache startu
On Sunday, April 28, 2002, at 04:48 PM, Stas Bekman wrote:
> Ken Williams wrote:
>> On Sunday, April 28, 2002, at 01:47 PM, Stas Bekman wrote:
>>> Ken, CWD.pm, has always suffered from taint problems. This problem
>>> has been fixed in the bleadperl, try this pat
On Sunday, April 28, 2002, at 04:48 PM, Stas Bekman wrote:
> it does solve the problem on linux. Ken, can you test the
> bleadperl? This fix was applied as a solution. If `pwd` doesn't
> work for you, that sucks! Meaning that the problem wasn't fixed
> in bleadperl :( Can you check the recent
On Sunday, April 28, 2002, at 01:47 PM, Stas Bekman wrote:
> Ken, CWD.pm, has always suffered from taint problems. This problem has
> been fixed in the bleadperl, try this patch:
>
> --- /tmp/Cwd.pm Sun Apr 28 11:44:38 2002
> +++ /home/stas/perl.org/perl-5.6.1/lib/Cwd.pm Fri Sep 14 17:09:1
On Sunday, April 28, 2002, at 12:41 PM, Ken Williams wrote:
> I used to be able to compile mod_perl pretty easily on Mac OS
> X, but now for some reason (upgrades of modules? OS upgrades?)
> I'm having a lot of trouble getting past 'make test'. Here's
> w
Hi,
I used to be able to compile mod_perl pretty easily on Mac OS X, but now
for some reason (upgrades of modules? OS upgrades?) I'm having a lot of
trouble getting past 'make test'. Here's what happens (no matter
whether I compile statically with just EVERYTHING=1, or as a DSO as per
http:
On Friday, February 22, 2002, at 09:58 AM, Joe Schaefer wrote:
> In the interim I'll try and maintain the "experimental" versions.
> Stas has been kind enough to work on adding a test suite to libapreq,
> which will very likely be included in the next release.
That'll be MUCH appreciated. That
On Friday, January 18, 2002, at 12:44 AM, Perrin Harkins wrote:
>> In a Mason context, which is where I'm using it, I do this in my
>> top-level autohandler (ignore the main:: subroutines, they're just for
>> pedagogy):
>>
>>
>> <%init>
>> # 'local' so it's available to lower-level components
On Friday, January 4, 2002, at 02:22 AM, Ken Williams wrote:
> For the sake of thread completion, here's a script which demonstrates
> the bug. It turns out to be a Perl bug (5.6.1, at least), not an
> Apache::Session bug. I'll post to p5p after I post here.
I was su
Hi,
The uploaded file
Apache-SSI-2.17.tar.gz
has entered CPAN as
file: $CPAN/authors/id/K/KW/KWILLIAMS/Apache-SSI-2.17.tar.gz
size: 25819 bytes
md5: b229a3a25a82935cad2da1af637714be
Changes since 2.16:
2.17 Mon Jan 14 13:58:21 CST 2002
Added the Apache::FakeSSI class, w
On Friday, January 4, 2002, at 02:48 AM, Gerald Richter wrote:
>># Won't get cleaned up properly
>>local %foo;
>>tie %foo, 'Dummy', name => '%foo';
>
> local only make a copy of the original value and restores it at the end
> of
> the scope, so %foo will not destroyed, but restored
Hey,
For the sake of thread completion, here's a script which demonstrates
the bug. It turns out to be a Perl bug (5.6.1, at least), not an
Apache::Session bug. I'll post to p5p after I post here.
Note that $foo and %bar are cleaned up by refcount, but %foo isn't
cleaned up until global des
On Thursday, January 3, 2002, at 02:02 PM, Jeffrey W. Baker wrote:
> This seems like a really weird problem. The Store module is destroyed
> while another module still has a reference to it. Unfortunately for you
> and I, the only conclusion I have been able to draw is that Perl's
> DESTROY
>
On Thursday, January 3, 2002, at 11:57 AM, Perrin Harkins wrote:
>> I don't have a test case involving Apache::Session yet (I've been out
>> of
>> town for a couple days), but here's a simple one in Perl that
>> demonstrates the DESTROY order problem:
>
> That's sort of a weird example, since it
Hi Aaron,
I don't have a test case involving Apache::Session yet (I've been out of
town for a couple days), but here's a simple one in Perl that
demonstrates the DESTROY order problem:
--
#!/usr/bin/perl
{
package Outer;
sub ne
Hey,
I'm having problems with Apache::Session, the symptom is that none of my
data is getting written to the database. It's not the nested-data
problem, since I'm not using any nested data structures.
After some investigation, I've discovered that the
Apache::Session::Store::MySQL::DESTROY r
Joe,
The problem is that Apple has made some strange changes to the way shared
libraries are linked. I'm not very conversant in the details, but there
are some people on the [EMAIL PROTECTED] list that have discussed it.
Unfortunately, Apache::Request and Apache::Cookie don't define any tests
Michael,
Yeah, you can put it in the Apache namespace if it's mod_perl-dependent.
That's what it's there for. =) The name Apache::Gallery seems decent.
Michael Legart <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Apache::Gallery is a picture gallery implemented as a mod_perl handler,
> using libgd2 f
Hi all,
It doesn't much matter whether you're using stacked handlers or not, or
pushing vs. replacing, because the $r->child_terminate method seems to
simply call the C exit(0) function under certain conditions (Win32, old
version of apache, anything else?). Not much chance of any further act
Gerald Richter <[EMAIL PROTECTED]> wrote:
>>
>> Wouldn't it be better to subclass Apache::SSI instead of
>> HTML::Embperl::Syntax::SSI ? That part of it would be really easy - the
>> hard part would be actually implementing the OAS directive actions.
>>
>>
>
> If you really only want to do SSI,
Wim & Steven,
Wouldn't it be better to subclass Apache::SSI instead of
HTML::Embperl::Syntax::SSI ? That part of it would be really easy - the
hard part would be actually implementing the OAS directive actions.
Wim Kerkhoff <[EMAIL PROTECTED]> wrote:
> Steven Boger wrote:
>>
>> I've been net
Ted Sariyski <[EMAIL PROTECTED]> wrote:
> /home/web/roaming/.htaccess: Invalid command 'tsariysk:ZJbPFKHxDasnx',
> perhaps mis-spelled or defined by a module not included in the server
> configuration
It looks like you've confused the .htaccess and .htpasswd files.
> PerlModule Apache::Roamin
___cliff rayman___ <[EMAIL PROTECTED]> wrote:
> Alex Krohn wrote:
>
>> Hi,
>>
>> With this simple test script:
>>
>> print "Content-type: text/html\n\n";
>> my $var = 'x' x 50;
>
> our $var = 'x' x 50;
>
>>
>> my $sub = sub { my $sub2 = sub { $var; }; };
>> print "Done\n";
>>
>> $var doe
Hi,
It sounds like you want to read the source code. =) Download mod_perl
(or perhaps you already have) and read the source to Apache.pm,
mod_perl.pm, and so on, until you understand everything you want to. Be
warned, it's not easy reading.
There aren't many documents describing the interna
On Sat, Sep 01, 2001 at 02:38:05PM -0500, Mike808 wrote:
> ryc wrote:
> > ... I am having a problem with DBI (or the db) escaping '\n'
> > characters so when they are inserted into the database they become '\\n'
> > (ie a '\' followed by 'n').
>
> > Does anyone have advice on how this could be do
ache::Cookie.
----------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
in the HTTP/1.1 docs:
http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc2068.html
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
#x27;s not going away anytime
soon.
--- ---
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
, that could take up tons of RAM.
Right, that sounds like the culprit. Miroslav, see the 'mysql_use_result'
parameter in 'perldoc DBD::mysql', which will let you store the result
in a mysql server table rather than in client memory.
---
list. Then there's the Eagle book, and a couple books
still in the pipeline...
----------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
started, PerlModule will
delay loading the module until after it's started. So you might try
putting an empty section in your httpd.conf prior to the
PerlModule directive.
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
's not causing a problem
here, but it can at least create confusion in the mind.
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
ce Apache::DBI to
>close that handle prior to the forking of children?
I bet you could do:
$dbh->DBI::db::disconnect
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
ve ever seen the particular src.t problem you're seeing.
------- ---
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
use
people genuinely have very different problems to solve.
--- ---
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
;#close new mail file
>
>}#end of it
>
>
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
I'll just
have to meet up with y'all as-catch-can throughout the week. See you soon!
--- ---
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
>
>Anyone have any ideas as to why perl can't seem to find the file
>eventhough the system, clearly, can?
>
>James
>
>
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
t I was on Friday!)
----------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
he conference. Can you please post the URLs for your talks?
>Not only mod_perl, but any...
You asked for it ... ;-)
http://mathforum.com/~ken/categorize/001.html
(These are the slides from YAPC, I need to revise them a little for TPC.)
---
>
>[cable-ggar40-162:/usr/src/mod_perl-1.26] root# perl Makefile.PL
>APACHE_SRC=../apache_1.3.14/src DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
-Ken Williams
The Math Forum
[EMAIL PROTECTED]
rouh Apache,
>which will then parse the PHP with mod_php, and send that output back to
>the client via 'print $fetched_contents;'
You'll be happier, and the code will run faster, if you use an Apache
subrequest instead of a full-blown LWP request. If you're not
familiar with
mp folks to show up at one
>place that first night.
I'll arrive sometime on Monday, ready to piss. (oh, wait...)
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
Yo,
I just noticed that there's no mod_perl BOF listed at
http://conferences.oreillynet.com/cs/os2001/pub/10/bofs.html .
Is one scheduled? If not, let's get one together.
----------
Ken Williams
rrect approach, or is there some
>other kind of filehandle magic i can use?
Tying is probably the way to go. You can check out Apache::Filter for
an example of how to tie STDOUT.
----------
Ken Williams
t;print('Hello ');
>>\$r->print('World');
>>200;
>> }
>>1;
>>
>> SetHandler perl-script
>> PerlHandler Apache::bench
>>
>
>
>
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
rver manages reloading, etc. varies from one
scheme to another, but that additional stuff is the reason Registry
scripts are usually slower than handlers.
----------
Ken Williams Last Bastion of Euclid
u should take a look at the book "Writing
Apache Modules with Perl and C" from O'Reilly. There are many ways you
could do this, and a book like that will give you a sense of the issues
involved.
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
ing subrequests, if you want. See
$r->lookup_uri().
But I'm not sure why you need to redirect just to authenticate. Can't
you just deny access if authentication fails, and allow it if it
succeeds?
------
Ken W
les.html
It's general-purpose, not Apache or mod_perl specific.
----------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
he front-end, because overload is rarely a
problem there.
------- ---
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
::AuthCookie uses method handlers. Several subclasses of it also
exist, like Apache::AuthTicket, Apache::AuthCookieDBI, and whatever DIY
module you build to use AuthCookie itself.
----------
Ken Williams Las
by reference.
Could be shortened to 'push @$upper_id, $row[0];', but no biggie.
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
ping.
BTW, I usually prefer '@array=();' to 'undef @array;', because I like to
let Perl handle the memory allocation/deallocation. If memory is tight
though, then I suppose you'll do what you have to do.
------
ired filename extension and proper
disposition headers.
----------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
obably a bit too drastic if you've got anything of
consequence on the disk.
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
or through Apache::Status in a
web browser.
--- ---
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
[EMAIL PROTECTED] (allan) wrote:
>im aware of the head/HEAD problem that comes with LWP on mac osX and
>have therefore copied a binary head that ken williams sent me into
>/usr/bin and moved the lwp head into /usr/local/bin.
Looks like that problem still isn't fixed, as shown by
uldn't find any info. Did this thing ever see the light
>> of day?
>
>yes, credator (product spells with an 'a' rather than 'i')
Ooh, that sounds like it has some TEETH! =)
----------
Ken Williams
anet as your main server but could
run an Apache process as a backend using a proxy, then you could do
fine. If you're forbidden from running Apache at all, you're out of
luck.
----------
Ken Williams
lp with that.
Let me also gently suggest that you should take this off-list, as there
have been a lot of messages on your topic already.
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
ou can get more insight into the problem.
--- ---
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
hen you
could change that script all day and your changes will never have any
effect.
So either you're just running the wrong script, or the script has gotten
cached under Apache::Registry and it's not noticing the latest version
on disk.
---
, you
have to see the particular error string, starting with "Error:", to find
out what's happening.
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
ord)
or die "Error: $DBI::errstr";
(include the whole string there)
----------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
d be nice to be able to recompile at will. Hope you have luck
>figuring out the problem.
I suppose if nobody has a known fix, this is a topic for the modperl-dev
list. I'll move it over there.
--- ---
Ken Williams
her that
works. I've never gone that route before because of the historic DSO
problems with mod_perl.
----------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
his binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under darwin
Compiled at 02/16/01 17:02:42
@INC:
/System/Library/Perl/darwin
/System/Library/Perl
/Library/Perl/darwin
/Library/Perl
/Library/Perl
/Network/Library/Perl/darwin
/Network/L
#x27;name'});
In addition, in a mod_perl environment you don't want any of your
data-carrying variables to be in the runtime symbol table. Lexical
variables ('my') are much safer and guard against variables leaking out
of the scope you thought they were supposed to be in.
---
ness is probably going to make it hard
to track down the problem. But there should be a 1 in 6 chance of
failure, so at least you can figure out the various distributions.
[Sorry, I'm teaching a probability class right now.]
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
}
keys %$arg;
>
>with 'and' *{$My::Debacle::{handler}}{CODE} doesn't exist.
That's an illusion. The truth is that with 'and' the code is checking
something completely different, or not working at all.
This is turning out to be pretty well off-topic for the mod_perl list,
so we should cease.
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
he problem?
>
>with that, poof! $My::Debacle::handler{CODE} doesn't exist.
>WHY?
>
>--
>[EMAIL PROTECTED]
>http://sourceforge.net/projects/newbiedoc -- we need your brain!
>http://www.dontUthink.com/ -- your brain needs us!
>
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
like a pure
>perl to me.
Damian claims to only ever write code in pure Perl.
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
which
>strangely enough actually works. Registry stats pages to see if they
>change and recompiles pages I believe. So I am wondering why isn't an
>exception raised on the third request about not declaring '$test'? Did
>the first request put '$test' in the symbo
this).
I'd suggest just this:
my $mac_check = md5_hex join '', $secret, @fields;
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
. Perhaps a method could be added to Apache::Filter for this, if
it's a common need.
Right now, you could do the following in the no-op handlers:
$r = $r->filter_register();
my $fh = $r->filter_input;
$r->send_fd($fh);
(though I'm not quite sure why these exist a
ctual Apache::Filter code, just stuff in
the test suite.
--- ---
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
send_fd() would complain about a 'Bad
filehandle'. Occurred most often with Apache::Compress.
Added a couple of tests to properly exercise the send_fd() method.
----------
Ken Williams Last
I hack/fixed it by taking out the check to see if its the last module in a
>chain..
>
>For me, that is always a safe assumption..
>
>Let me know if theres ever a real fix..
>
>
>- Original Message -
>From: "Ken Williams" <[EMAIL PROTECTED]>
>To:
that doesnt support gzip..(specifically 'ab', apache
>bench)
------- ---
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
tml' page.
My guess at your problem - you haven't pre-loaded all necessary modules
in your startup files (httpd.conf and startup.pl). The code is
disappearing when the children die and are re-spawned.
------
Ken Willia
//www.cnn.com');
$r->status(302);
$r->send_http_header();
The downside of this, of course, is that it won't work under regular CGI.
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
to take
offense, and the situations in which he/she shouldn't. That's not how
emotions work.
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
o pay
the registration fees.
Personally I have no idea whether notes for ApacheCon will be generally
available or not, but these are some of the possible reasons for not
doing so.
The benefits for putting them up are obvious. =)
-------
Apache::Myprocessing Apache::SSI
And read the Apache::Filter manpage about how to make
Apache::Myprocessing work in this setup.
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
[EMAIL PROTECTED] (Philippe de Rochambeau) wrote:
>has anyone ever installed/compiled mod_perl for MacOSX? If so, how
>exactly did you do it?
See this thread:
http://forum.swarthmore.edu/epigone/modperl/philsmangyi
------
e Apache::Filter, which makes it easy.
--- ---
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
that what you mean?
----------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
ache::Filter?
----------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
heard of this module before. It looks like it's
never been discussed on the list, and it's not in the module list.
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
ndler for is never set?
It sounds like you want this (or similar):
Set-Handler perl-script
PerlHandler app::main
Using sets things for the entire server, because it means
"everything below /".
------- ---
It's a bit long, but thorough. Especially see "The Remedy" section.
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
er each change
>/etc/rc.d/init.d/httpd restart
>
>but I cannot get the server to parse *.pl files using mod_perl.
>
>Any ideas?
>
>Thanks.
>
------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED]The Math Forum
1 - 100 of 325 matches
Mail list logo