RE: Trouble with Apache::Request

2003-07-31 Thread Glenn E. Bailey III
I had this exact same issue yesterday. I noticed that is was installing
the libapreq.so.1 in
/usr/local/lib and /usr/local/lib wasn't in my /etc/ld.so.conf file.
Just add /usr/local/lib
to your /etc/ld.so.conf file and then run "ldconfig" .. Worked for me
and I was messing with
the darn thing for about 3 hours.

. Glenn E. Bailey III
. Sprocket Data, Inc.
. http://www.sprocketdata.com  

: -Original Message-
: From: Stas Bekman [mailto:[EMAIL PROTECTED] 
: Sent: Thursday, July 31, 2003 6:48 AM
: To: K Old
: Cc: ModPerl List
: Subject: Re: Trouble with Apache::Request
: 
: 
: >>On 6 Jun 2003, K Old wrote:
: 
: [...]
: 
: > Well, here are the errors I'm getting:
: > 
: > When I *force* and install of Apache::Request and a script calls 
: > Apache::Request, this is in the error_log: [Fri Jun  6 
: 17:27:31 2003] 
: > [error] Can't locate object method "new" via package 
: "Apache::Request" 
: > at 
: > 
: /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache/Request.
: > pm
: > line 22.
: > 
: > This is from doing a make test when trying to install 
: Apache::Request
: > manually:
: > 
: > Syntax error on line 31 of 
: > /root/.cpan/build/libapreq-1.1/t/httpd.conf:
: > Can't load
: > 
: '/root/.cpan/build/libapreq-1.1/blib/arch/auto/Apache/Request/
: Request.so' for module Apache::Request: libapreq.so.1: cannot 
: open shared object file: No such file or directory at 
: /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
: >  at 
: /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/mod_perl.pm
: > line 14
: > Compilation failed in require at (eval 16) line 3.
: 
: This patch resolves this problem: 
: http://marc.theaimsgroup.com/?l=apreq-dev&m=105965131008577&w=
2

it should go in in the next release.

__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




RE: PerlTransHandler headaches

2003-07-30 Thread Glenn E. Bailey III
: don't forget, you can't just change handlers and expect them 
: to work - 

This is probably what has been messing me up. Doing a quick stop
and restart of Apache after any change I made seems to have fixed
my problems, do! Thanks for your help ;-)

. Glenn E. Bailey III
. Network Solutions Developer
. Sprocket Data, Inc.



RE: PerlTransHandler headaches

2003-07-30 Thread Glenn E. Bailey III
: check out the resources at http://perl.apache.org/ - there's 
: lots of good 
: information there :)

Heh, only found one document there concerning the TransHandler
stuff .. 

: so, the general rule for PerlTransHandlers is to return 
: DECLINED unless you 
: set $r->filename.

What I am trying to do is just test, to make sure it is working
ok. So what I did is wrote the following snippit:

sub handler {
  my $r = shift;
  return DECLINED;
  }

That should still allow me to pull up my default content, correct? As
of now it still gives me a 404 ..



PerlTransHandler headaches

2003-07-30 Thread Glenn E. Bailey III
Hello,

While I am not new to Perl, I am completely new to mod_perl. I have 
a client I am working on moving a project that runs under mod_perl. 
He does alot manipulation with the PerlTransHandler stuff. Well, 
even on a default mod_perl install, with a default Apache install, I 
can not get the darn thing to work for the life of me. Here is the 
simple script I am using to test with:

use Apache::Constants qw|OK DECLINED REDIRECT M_GET|;
use strict;
use warnings;

sub handler {
  my $r = shift;
  return OK;
  }
1;

And not matter what I always get a 404 with the following in the log:

[Tue Jul 29 03:27:27 2003] [error] [client 10.0.0.1] File does not 
exist: /

Any suggestions on where to start looking? The original coder of the 
project has left the client and is nowhere to be found, fun fun .. ;-)