Jump to content


cgi scripts will not run (not solution in other posts)

  • Please log in to reply
1 reply to this topic

#1 aidee



  • Member
  • Pip
  • 1 posts
  • Main OS: Windows XP

Posted 29 January 2009 - 05:12 AM

I have a problem running perl scripts from c:\amp\uniform server\udrive\cgi-bin. I can run the admin panel with scripts so perl is working. I copied rserver.cgi to above cgi dir but it will not run from there with the obvious message:

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

Please contact the server administrator, albert.drent@rug.nl and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.0.59 (Win32) DAV/2 PHP/5.2.3 Server at localhost Port 80

I have a default install and a default httpd. The first pl line is:

#! /usr/bin/perl
# CGI perl module for 'usva' application server
# V1.0
# author
# Albert Drent
# for RuG Rijksuniversiteit Groningen (BIV)

I looked in the errorlog and found:

- [Thu Jan 29 11:00:12 2009] [error] [client] Can't locate IO/Socket.pm in @INC (@INC contains: W:/usr/lib .) at W:/cgi-bin/avw.pl line 16.\r

What configuration somewhere could be wrong? There is a socket.pm but the subdir io is missing.

university of groningen

#2 Ric


    Project Manager

  • Admin
  • PipPipPipPipPip
  • 1,535 posts
  • Gender:Male
  • Location:Cambridge,UK
  • Interests:Electronics
    Internet in general
    Open source projects
  • SourceForge IDmpgcan
  • Wiki ID: Ric
  • Main OS: Windows XP

Posted 02 February 2009 - 09:13 AM

Hi nidee
If you moved only the file rserver.cgi for testing it will not work, it expects other files to be present e.g header, footer and security these in addition expect other files js and css. Anyway there is no point in trying to get this working it would be better to post code that you have a problem with.

Perl is pre-configured hence there is nothing hidden to set-up. You may be trying to use modules that are not included however without code to view its impossible say or it might be just a typo.

All the best
Ric :)

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users