perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Brown <>
Subject Re: ASP on Virtual Server
Date Wed, 21 Jan 2004 20:32:53 GMT
I created a .htaccess file in my asp directory with the following lines in it:
<Files ~ (\.asp)>
  SetHandler  perl-script
  PerlHandler Apache::ASP
  PerlSetVar  Global /home/webadmin/
  PerlSetVar  StateDir /tmp/asp
  PerlSetVar UseStrict 0
  PerlSetVar Debug 3

All my ASP stuff is commented out in the httpd.conf file.

Now when I run my hello world asp I get the following in the error_log:

[Wed Jan 21 12:18:27 2004] [error] Can't locate Apache/ in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux
/usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at (eval 2) line 3.

[Wed Jan 21 12:18:27 2004] [error] Undefined subroutine &Apache::ASP::handler called.

I added this line above the <Files> tag in the .htaccess file 
PerlModule  Apache::ASP

Now I get the following error in the error_log.

[Wed Jan 21 12:25:47 2004] [alert] [client] /home/webadmin/
Can't locate Apache/ in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl
. /etc/httpd/ /etc/httpd/lib/perl) at (eval 5) line 3.

It's not even trying to use my newly installed perl 5.8

I'm really floundering here.

-----Original Message-----
From: Josh Chamas <>
Sent: Jan 21, 2004 9:47 AM
To: Steve Brown <>
Cc: Helmut Zeilinger <>,
Subject: Re: ASP on Virtual Server

Steve Brown wrote:
> When I could not find the error_log message you requested, I did a find from / and found
> Here's the last 3 lines from a restart of Apache.  I notice perl is missing.  According
to my /etc/httpd/conf/httpd.conf file the error_log should be in /home/webadmin/ 
> [Wed Jan 21 07:05:51 2004] [notice] Apache/1.3.27 (Unix)  (Red-Hat/Linux) PHP/4.1.2 mod_perl/1.27
configured -- resuming normal operations
> [Wed Jan 21 07:05:51 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
> [Wed Jan 21 07:05:51 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)

The mod_perl part of the header is enough to show that this system should work.

Assuming this is the right error_log, what does it say when you
try the ASP page, and you get a 500 error?  500 errors are almost
always reported in the error_log.  Note though that port 443 is your
SSL port typically so that could be the problem.

Also, to confirm you are looking at the right error_log, you should
also find the access_log which records the page request as well
and shows the 500 error occuring.


Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.      
NodeWorks Link Checker       

To unsubscribe, e-mail:
For additional commands, e-mail:

Steve Brown

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message