Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run CGI script on Apache

Status
Not open for further replies.

duntinq

Programmer
Joined
Feb 23, 2006
Messages
6
Location
US
Hi all,

Does anyone know how to configure Apache so that it knows where to find the newly installed perl module? When I run my cgi which uses a newly installed module, my apache server cannot find it and gives me error. Please help. Thanks.


 
Sure. Sorry, I should have done that. Here are the errors:

Error message in the log file:
[client 127.0.0.1] Can't locate LWP.pm in @INC (@INC contains: .) at C:/Apache Group/Apache2/cgi-bin/test.cgi line 7.\r [Sun Feb 26 13:42:07 2006] [error]
[client 127.0.0.1] BEGIN failed--compilation aborted at C:/Apache Group/Apache2/cgi-bin/test.cgi line 7.\r

Error message sent to browser:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.



 
Try putting it in the cgi-bin directory or using a fully qualified path in the requires line.

You might get an even better answer from the experts in the perl forum
I'm sure there is a better way to tell @INC where your PMs are, but I don't know it.

\0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top