Jump to content
The Uniform Server Community
Sign in to follow this  
aidee

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

Recommended Posts

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 127.0.0.1] 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.

 

albert

university of groningen

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...