Current location: Hot Scripts Forums » Programming Languages » Perl » 500 error


500 error

Reply
  #1 (permalink)  
Old 09-27-03, 09:52 AM
metoo metoo is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
500 error

Why do I get the 500 eroor while I am postive that I have done all the needed instuction to run cgi. I checked the cgi script for erros using shh and it reported back that syntax is ok..

any clue
Reply With Quote
  #2 (permalink)  
Old 09-27-03, 10:14 AM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by metoo
Why do I get the 500 eroor while I am postive that I have done all the needed instuction to run cgi. I checked the cgi script for erros using shh and it reported back that syntax is ok..
any clue
Have you checked the log files for the web server ? They normally give a clue as to what is happening...
Reply With Quote
  #3 (permalink)  
Old 09-27-03, 10:35 AM
metoo metoo is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by YourPHPPro
Have you checked the log files for the web server ? They normally give a clue as to what is happening...
Thanks for you concenr and support

Yes I did check the error and these are the ones I keep getting

1-Premature end of script headers: /home/metoo/public_html/cgi-bin/reading/admin.cgi

2- File does not exist: /home/metoo/public_html/403.shtml

3- attempt to invoke directory as script: /home/mryoo/public_html/cgi-bin/reading
Reply With Quote
  #4 (permalink)  
Old 09-27-03, 11:04 AM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by metoo
3- attempt to invoke directory as script: /home/mryoo/public_html/cgi-bin/reading
This is the most likely one to check out. What in calling /home/mryoo/public_html/cgi-bin/reading ?
Reply With Quote
  #5 (permalink)  
Old 09-27-03, 11:51 AM
metoo metoo is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by YourPHPPro
This is the most likely one to check out. What in calling /home/mryoo/public_html/cgi-bin/reading ?
Thanks a lot

I found there are three directories for cgi scripts

cgi-bin
scgi-bin
and cgi-sys

what the major differneces

thanks a lot
Reply With Quote
  #6 (permalink)  
Old 09-27-03, 12:20 PM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by metoo
what the major differneces
It depends on how your webhost has it setup.

Have you taken a look at your programs and found out where /home/mryoo/public_html/cgi-bin/reading is being called from ?
Reply With Quote
  #7 (permalink)  
Old 09-29-03, 12:14 AM
rob2132 rob2132 is offline
Newbie Coder
 
Join Date: Sep 2003
Location: USA
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by metoo
Why do I get the 500 eroor while I am postive that I have done all the needed instuction to run cgi. I checked the cgi script for erros using shh and it reported back that syntax is ok..

any clue

This can be caused by anything, but since it works from shell, you need to ensure that you have the proper permissions for the file (755) for execute, it's the proper ownership if you're using a cgi wrapper, you uploaded in ascii mode and not binary, you're outputting the proper header before any failures can happen and that you do proper system calls. Likely you are not checking that you can open the file mentioned in your error logs (note the wrong path due to a typo in your example), and rather than stating there's an error, it will die miserably before being able to output the content-type header.
Reply With Quote
  #8 (permalink)  
Old 09-29-03, 07:46 AM
metoo metoo is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks a lot buddy. It worked now and as you said it was a typo error.
Reply With Quote
  #9 (permalink)  
Old 10-04-03, 09:47 PM
rob2132 rob2132 is offline
Newbie Coder
 
Join Date: Sep 2003
Location: USA
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by metoo
Thanks a lot buddy. It worked now and as you said it was a typo error.

Good to hear! Cheers.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ADODB.Connection error '800a0bb9' - HELP! seala ASP 1 03-09-05 05:37 AM
error when creating database tables with php script spiroth10 PHP 4 01-06-04 03:59 PM
getting -2147217900 error while inserting and updating skchakri ASP 3 09-20-03 10:34 AM
Can't find the error. Mister B. ASP 12 08-27-03 06:18 PM
Funny error returned. Mister B. ASP.NET 3 08-24-03 06:39 PM


All times are GMT -5. The time now is 04:08 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.