You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Robert Friberg <ro...@ensofus.se> on 2001/10/31 21:13:05 UTC

Simple install and test fails...

Hi all,

I'm fairly experienced with modperl and tried today to get Apache::ASP up
and
running to no avail. I've skimmed the archive and FAQ but maybe someone
could
save me a lot of time by spotting something obvious before I start digging
deeper.
thanks in advance for looking at this...

 Here's my setup:

   Redhat Linux 6.x with 2.2.5-15 kernel
   apache 1.3.6 with static modperl 1.21
   perl 5.005_03

Here's what I did:
   Installed Bundle::Apache::ASP 2.25 (perl -MCPAN -e shell)

   # mkdir /tmp/asp; chown nodoby /tmp/asp

   put this in my conf-file:

    <FilesMatch "\.asp$">
      SetHandler perl-script
      PerlModule Apache::ASP
      PerlHandler Apache::ASP
      PerlSetVar Global /tmp/asp
   </FilesMatch>

   and created a simple helloworld.asp file:

   <html><body>
    <% $Response->Write 'Hello, World!' %>
   </body></html>

  Restarted the server, pointed a browser at the page
  and got a 501 with the following reason:

 [error] Can't locate object method "fileno" via package
"Apache::Connection" at /home/webs/perllib/Apache/ASP.pm line 3741.

Apache::ASP::Response::IsClientConnected('Apache::ASP::Response=HASH(0x85822
8c)') called at /home/webs/perllib/Apache/ASP.pm line 3458
        Apache::ASP::Response::new('Apache::ASP=HASH(0x8582088)') called at
/home/webs/perllib/Apache/ASP.pm line 619
        Apache::ASP::new('Apache::ASP', 'Apache=SCALAR(0x821e4a0)') called
at /home/webs/perllib/Apache/ASP.pm line 163
        Apache::ASP::handler('Apache=SCALAR(0x821e4a0)') called at /dev/null
line 0
        eval {...} called at /dev/null line 0

mvh,
#---------------------------------------------------
#  Robert Friberg   java,xml,perl,uml,sql,delphi,
#  +46733839080     c/c++,vb,wap,php,linux,apache
#
#  www.ensofus.se   konsulting,internetsystem,
#  Ensofus AB       utbildning, Miljö Online
#---------------------------------------------------

Re: Simple install and test fails...

Posted by Joshua Chamas <jo...@chamas.com>.
Robert Friberg wrote:
> 
>    and created a simple helloworld.asp file:
> 
>    <html><body>
>     <% $Response->Write 'Hello, World!' %>
>    </body></html>
> 
>   Restarted the server, pointed a browser at the page
>   and got a 501 with the following reason:
> 
>  [error] Can't locate object method "fileno" via package
> "Apache::Connection" at /home/webs/perllib/Apache/ASP.pm line 3741.
> 
> Apache::ASP::Response::IsClientConnected('Apache::ASP::Response=HASH(0x85822
> 8c)') called at /home/webs/perllib/Apache/ASP.pm line 3458
>         Apache::ASP::Response::new('Apache::ASP=HASH(0x8582088)') called at

I believe this is do to older ( < 2.21? ) modperls not 
implementing Apache::Connection::fileno, and this dependency 
was implemented in Apache::ASP 2.25 for the first time.

2.27 will fix this to be backwards compatible with older
modperl versions.  I can send you separately my experimental
dev version, or you can downgrade to Apache::ASP 2.21.

--Josh
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org