Lunarpages Web Hosting Forum

Author Topic: internal server error  (Read 5358 times)

Offline 128k

  • Newbie
  • *
  • Posts: 5
    • http://ircna.com
internal server error
« on: November 27, 2002, 04:00:00 PM »
Hi,

I am trying to get some perl scripts to work, but any I try give me this:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@ircna.com 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.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

_______

I have set the path to /usr/bin/perl and am trying out loads of different simple scripts, but none work. I have chmoded the cgi-bin to 755 and the scripts to 777 but no luck. Is it my fault that they don't work?

any suggestions welcome.
  "[Frown]"

stephan

  • Guest
internal server error
« Reply #1 on: November 27, 2002, 06:20:00 PM »
Internal server errors are caused by scripts which aren't set up properly.

Check the case of the files that your script uses.
Recheck the permissions

Read the instructions that came with the script.

If it still doesn't work, let us know!

Good luck

Offline 128k

  • Newbie
  • *
  • Posts: 5
    • http://ircna.com
internal server error
« Reply #2 on: November 27, 2002, 08:31:00 PM »
still no luck. I am using this code:

IFRAME SRC="http://ircna.com/scgi-bin/poo.pl" WIDTH="95%" HEIGHT="125" FRAMEBORDER="0"></IFRAME

on a page calling this script:

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<H1>Hello World</H1>\n";

when i do this i get the internal server error, and when i change the address of the frame source to /home/..../cgi-bin i get a page not found error. I have tried it in the cgi-bin and scgi-bin with the same result, and have chmoded the cgi/scgi-bins to 755 and the script to 777.

Any ideas?

cheers

stephan

  • Guest
internal server error
« Reply #3 on: November 27, 2002, 10:31:00 PM »
You're not meant to use scgi-bin

Put your scripts into cgi-bin.

Just for testing purposes, don't use the iframe, for now.

just test it with http://ircna.com/scgi-bin/poo.pl

You can't use a full path in an iframe.

Offline 128k

  • Newbie
  • *
  • Posts: 5
    • http://ircna.com
internal server error
« Reply #4 on: November 27, 2002, 10:48:00 PM »
cheers for

sticking with this. The same script is now in the cgi-bin, 777 on the script, 755 on the folder, should be called with:
http://www.ircna.com/cgi-bin/poo.pl

still not working. I don't really know a lot about perl, but it seems to me that the script perhaps isn't finding the program, there's not much in the script to go wrong apart from that, unless i've missed something fundamental. it's really doing my head in now.

stephan

  • Guest
internal server error
« Reply #5 on: November 28, 2002, 12:05:00 AM »
I tried your script (exactly as it is) on my webspace.

I put it in cgi-bin

(public_html/cgi-bin)

I used the CHMOD command and set the permissions to 755 on poo.pl

Check the path to perl on your server.
You can find it out on the first page when you login to CPanel.

Other than that, I don't know what the problem is. I recreated everything exactly the same as you have it on your setup and it worked.

Maybe you should check your FTP program uploaded it as an ascii file and not a binary one.

Offline 128k

  • Newbie
  • *
  • Posts: 5
    • http://ircna.com
internal server error
« Reply #6 on: November 28, 2002, 03:25:00 PM »
stephan,

thanks for testing it. I tried using ws_ftp to upload rather than cute ftp, and now it works fine! unbelievable. Anyway, thanks a lot for the help. I'm off to try some complicated scripts now.

cheers.

stephan

  • Guest
internal server error
« Reply #7 on: November 28, 2002, 05:39:00 PM »
Wierd.

Especially as I've just changed to CuteFTP, and that's what I used to upload the test version to my website!

I am changing back though, I'm not that impressed with cuteftp.

Well done though!

Offline Mr. Tech

  • Intergalactic Cowboy
  • *****
  • Posts: 67
    • http://www.webwondersnews.com
internal server error
« Reply #8 on: December 01, 2002, 07:59:00 AM »
128k, What is your CHMOD for the scgi-bin? I keep getting thos internel server errors too!

stephan

  • Guest
internal server error
« Reply #9 on: December 01, 2002, 08:30:00 AM »
You do not need to use scgi-bin!

Offline Mr. Tech

  • Intergalactic Cowboy
  • *****
  • Posts: 67
    • http://www.webwondersnews.com
internal server error
« Reply #10 on: December 01, 2002, 10:32:00 AM »
Hi Stephan!

What do I set the cgi-bin and files in it with CHMOD?

Cheers

stephan

  • Guest
internal server error
« Reply #11 on: December 01, 2002, 11:33:00 AM »
Hello again!

Don't change the permissions of the cgi-bin folder, they are already set properly.

You should change the permissions of the cgi script in your cgi-bin directory to 755.

Offline Mr. Tech

  • Intergalactic Cowboy
  • *****
  • Posts: 67
    • http://www.webwondersnews.com
internal server error
« Reply #12 on: December 02, 2002, 06:32:00 AM »
I think I have changed the permission for the cgi-bin... Could you tell me just incase  "[Wink]"  

Cheers

Tech

Offline Mr. Tech

  • Intergalactic Cowboy
  • *****
  • Posts: 67
    • http://www.webwondersnews.com
internal server error
« Reply #13 on: December 02, 2002, 06:43:00 AM »
hey!! I got a basic hello world script to work! THANK YOU!

  "[Big    "[Big

Offline rwerts

  • Newbie
  • *
  • Posts: 3
    • http://www.rockonlive.com
internal server error
« Reply #14 on: January 01, 2003, 08:26:00 AM »
I am getting the same thing, I am tring to use a script that will email the results of a form. I useing the script that I got of here http://www.autorepaircd.com/scripts/makeperl.shtml and here is the header to my form,
<form action="/cgi-bin/mail.pl" method="POST">
i have the permissions set to 755 like it says on the page.