logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Problem finding perl library when using Alias - ALL SET!
Author
memnoch



Joined: 01 Jan 2008
Posts: 8

PostPosted: Fri 15 Feb '08 18:13    Post subject: Problem finding perl library when using Alias - ALL SET! Reply with quote

Greetings Apache Gurus,

I'm not sure if this is an Apache question or a Perl question....please let me know if I should post elsewhere.

I have been trying to configure Apache to use mod_perl and have run into a configuration problem.

I have cgi scripts in: C:/Apache2/cgi-bin/ridhwan/

They work fine when I access them by way of:

http://localhost/cgi-bin/ridhwan/update_roster.pl

which is just using regular CGI.

However, when I try to configure Apache to use mod_perl with the following in httpd.conf:

Code:
Alias /ridhwan/ "C:/Apache2/cgi-bin/ridhwan/"
<Location /ridhwan>
   SetHandler perl-script
   PerlResponseHandler ModPerl::Registry
   Options +ExecCGI
   PerlOptions +ParseHeaders
</Location>


and use the following url:

http://localhost/ridhwan/update_roster.pl <- Note missing /cgi-bin/

I get an "Internal Server Error" and the following in the Apache log:

Code:
[error] Can't locate Ridhwan.pm in @INC (@INC contains: . C:/Perl/site/lib C:/Perl/lib C:/Apache2) at C:/Apache2/cgi-bin/ridhwan/update_roster.pl line 16.\nBEGIN failed--compilation aborted at C:/Apache2/cgi-bin/ridhwan/update_roster.pl line 16.\n


Thank you,
memnoch
Back to top


Reply to topic   Topic: Problem finding perl library when using Alias - ALL SET! View previous topic :: View next topic
Post new topic   Forum Index -> Apache