Re: Custom Log files Under MP2

2003-09-11 Thread Tofu Optimist
k.org/chapters/ch16.pdf or take this route http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlLogHandler If the former, would you have any sample config code to illustrate? Thanks! -TO --- Geoffrey Young <[EMAIL PROTECTED]> wrote: > > > Tofu Optimist wrote: > >

Custom Log files Under MP2

2003-09-02 Thread Tofu Optimist
I would like to append a small line of log information to a file on certain apache2 requests. For this application, I am very concerned about speed, so i'm looking for fast simple solutions. I could stuff the information in the error log as per http://perl.apache.org/docs/2.0/api/Apache/Log.html

Re: self_url MP2 w/o CGI

2003-09-02 Thread Tofu Optimist
nor my $uri = APR::URI->parse($r->pool, $r->construct_url); $uri .= "r2=1"; $r->headers_out->set(Location => $uri . "&r2=1"); return Apache::REDIRECT; works. Thanks Stas for all your patience and help! --- Stas Bekma

self_url MP2 w/o CGI

2003-09-02 Thread Tofu Optimist
Hi folks -- I'm using MP2, and I am trying to avoid loading CGI for 2 reasons: (1) To save memory. (2) When I do load CGI, it fails at the "require Apache" (line 161), and I'd prefer not to edit CGI on my server. Uck. Given I'm not loading CGI, how can I determine self_url() in MP2? I tried

post max and MP2

2003-09-02 Thread Tofu Optimist
Hello -- I'm moving a module from MP1 to MP2. What is the MP2 equivalent of this code? Thanks! my $q = Apache::Request->new($r, POST_MAX => 10 * 1024, DISABLE_UPLOADS => 1); $q->no_cache(1); __ Do you Yahoo!? Yaho

post max and MP2

2003-09-02 Thread Tofu Optimist
Hello -- I'm moving a module from MP1 to MP2. What is the MP2 equivalent of this code? Thanks! my $q = Apache::Request->new($r, POST_MAX => 10 * 1024, DISABLE_UPLOADS => 1); $q->no_cache(1); __ Do you Yahoo!? Yaho

Ah, success.

2003-08-02 Thread Tofu Optimist
Hi folks. It is Saturday evening, 2 Aug 03, 9pm local time, and I just got my modperl 2 and apache 2 running on my dev box, built from source, and just ran my first handler successfully. Hurrah!! I started on this wild adventure last Wednesday evening, so it took me around 3.5 days, working on a

Re: Skipped Tests (was: handler help)

2003-08-01 Thread Tofu Optimist
I am still here, trying to build mod_perl 2. Many thanks to everyone who offered help. To recap: I freshly installed RedHat 9 on a box, then used RPM to remove modules involving httpd. (See notes below). Then I built perl 5.8.0 from source, first doing a "export LANG=C" to address the UTF bug. T

Re: Skipped Tests (was: handler help)

2003-08-01 Thread Tofu Optimist
I'm not TRYING to be difficult; I am clueless. :) Exactly HOW do I change the locale? And after I do that, I do my make && make install again, yes? Many thanks! :) A __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://site

Re: Skipped Tests (was: handler help)

2003-08-01 Thread Tofu Optimist
Ack!! My perl build failed. Here's what I did nuke the RPMS [EMAIL PROTECTED] root]# rpm -e mod_ssl [EMAIL PROTECTED] root]# rpm -e mod_python [EMAIL PROTECTED] root]# rpm -e pho [EMAIL PROTECTED] root]# rpm -e php-ldap [EMAIL PROTECTED] root]# rpm -e php-imap [EMAIL PROTECTED] root]# r

Re: Skipped Tests (was: handler help)

2003-08-01 Thread Tofu Optimist
Thanks Ged. > [4] Is a full uninstall enough, or should I > reinstall RH itself? > > No, don't reinstall the entire OS. Get used to what > your system feels > like and eventually you'll know what to leave alone > and what to change. Well, I opted to reinstall everything, starting with a fresh R

Re: Skipped Tests (was: handler help)

2003-08-01 Thread Tofu Optimist
Ged -- Sorry I wasn't fully explicit, it is still early in the morning: > So your non-root user has write permission in > /usr/src? H... Rather than /usr/src, I put in /home/aprk > % make && make test && make install > This can't work, you need to be root to make > install. > Yes, you

Re: Skipped Tests (was: handler help)

2003-08-01 Thread Tofu Optimist
> wrote: > Hi there, > > On Fri, 1 Aug 2003, Tofu Optimist wrote: > > > sorry to break the thread in two. > > :( > > > > Why did it skip 6 tests? > > How did you do the > > perl Makefile.PL > > step? > > 73, > Ged. > > _

Skipped Tests (was: handler help)

2003-08-01 Thread Tofu Optimist
Hi -- I'm following up on a previous message (below), sorry to break the thread in two. In my first post, I was wondering my handler didn't work. I said "make test" worked fine for mod_perl. Well, maybe. Here's the output. [EMAIL PROTECTED]:~/source/mod_perl-1.28> make test (cd ../apache_1.3

handler help

2003-08-01 Thread Tofu Optimist
Hi. I need some help with handlers. I'm a linux newbie. I freshly installed RH 9. I built perl 5.8.0 from source. As non-root, I downloaded source for Apache 1.3.28 and mod_perl 1.28 and built them, using the instructions here http://perl.apache.org/docs/1.0/guide/install.html#A_Summary_of_a_B