You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Frank Naude (FJ)" <Na...@telkom.co.za> on 2002/11/07 13:05:00 UTC

Errors after converting /cgi-bin to PerlRun

Hi,

I'm trying to convert my /cgi-bin directory to PerlRun as it only
contain Perl scripts. However, after doing so, I get numerous errors
like this:

  [Wed Nov  6 11:34:21 2002] [error] Can't locate object method "uri"
via
  package "Apache::PerlRun" at
  /usr/lib/perl5/site_perl/5.6.0/i386-linux/Apache/PerlRun.pm line
212.

I think it happens when processing a "require <FILE>;" contruct.

My Apache config:

  # ScriptAlias /cgi-bin/ /home/virtual/site1/fst/var/www/cgi-bin/
  Alias /cgi-bin/ /home/virtual/site1/fst/var/www/cgi-bin/
  <Directory /home/virtual/site1/fst/var/www/cgi-bin>
     AllowOverride All
     SetHandler   perl-script
     PerlHandler  Apache::PerlRun
     Options      +ExecCGI
     PerlSendHeader On
  </Directory>
  SetEnv SITE_CGIROOT /home/virtual/site1/fst/var/www/cgi-bin

My software versions:

  Embedded Perl version v5.6.0 for Apache/1.3.22 (Unix)
(Red-Hat/Linux)
  mod_jk/1.2.0
  mod_perl/1.24_01
  PHP/4.1.1
  FrontPage/5.0.2
  mod_ssl/2.8.5
  OpenSSL/0.9.6b

Please help.

Frank Naude

Re: Errors after converting /cgi-bin to PerlRun

Posted by Stas Bekman <st...@stason.org>.
Frank Naude (FJ) wrote:
> Hi,
> 
> I'm trying to convert my /cgi-bin directory to PerlRun as it only
> contain Perl scripts. However, after doing so, I get numerous errors
> like this:
> 
>   [Wed Nov  6 11:34:21 2002] [error] Can't locate object method "uri"
> via
>   package "Apache::PerlRun" at
>   /usr/lib/perl5/site_perl/5.6.0/i386-linux/Apache/PerlRun.pm line
> 212.
> 
> I think it happens when processing a "require <FILE>;" contruct.

[...]

> My software versions:
> 
>   Embedded Perl version v5.6.0 for Apache/1.3.22 (Unix)
> (Red-Hat/Linux)
>   mod_jk/1.2.0
>   mod_perl/1.24_01
[...]

Would it be much of a trouble to upgrade to the latest mod_perl version 
1.27? Most likely this problem has been fixed long time ago.
[...]


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com