Navigator Internet Solutions, Inc | Community  

Go Back   Navigator Internet Solutions, Inc | Community > Interactive Forums > Support & Questions > Tutorials and HOW-TO's
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Welcome to the Navigator Internet Solutions, Inc | Community forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Tutorials and HOW-TO's The place to find/post Tutorials and How-to's for people just starting with computers.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-21-2005, 06:08 PM
NIS-Francisco's Avatar
NIS-Francisco NIS-Francisco is offline
Administrator
 
Join Date: Dec 2003
Posts: 528
Send a message via ICQ to NIS-Francisco Send a message via AIM to NIS-Francisco Send a message via MSN to NIS-Francisco Send a message via Yahoo to NIS-Francisco
Arrow How-to: Fix cgi-bin scripts that give you Error 500

If you are getting the following error:

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

Please contact the server administrator, webmaster@yoursite.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.
First check:

1. You have uploaded the .cgi files to the server thru FTP using ASCII mode (and NOT BINARY).

2. Check that you gave EXECUTABLE permissions to the .cgi scripts (chmod 755)

3. /cgi-bin/ folder should have permissions 755 as well.

If you are still getting errors check your ERROR LOG in your Control Panel, you should see the description of the error, example in this case:

Code:
[Wed Dec 21 16:54:00 2005] [error] [client 201.xxx.xxx.xxx] Premature end of script headers: /home2/username/public_html/cgi-bin/guestbook.cgi
Now, the script has coding errors, to make them work try out this workaround:

1. Edit ALL the .cgi files that do not work (the ones you get an error from).

2. Add the following Code after:
Code:
#!/usr/bin/perl
Add this after #!/usr/bin/perl :

Code:
use CGI::Carp qw(fatalsToBrowser);
This should work as a workaround.

Thank you.
Francisco
NavigatorIS
__________________
Best Regards,
Francisco Mazzeo
Navigator Internet Solutions, Inc
Resource-Shack
Reply With Quote
Reply



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

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


All times are GMT -4. The time now is 03:26 AM.


Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0 RC6
Copyright © 2003-2005 Navigator Internet Solutions, Inc (NIS - NavigatorIS). All Rights Reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106