Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Lionsanime Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 08-06-2004, 04:34 PM   #1 (permalink)
Contributing Member
 
Join Date: 06-04-04
Posts: 233
iTrader: 0 / 0%
Latest Blog:
None

GeXus is a jewel in the roughGeXus is a jewel in the roughGeXus is a jewel in the roughGeXus is a jewel in the roughGeXus is a jewel in the roughGeXus is a jewel in the roughGeXus is a jewel in the roughGeXus is a jewel in the rough
Internal server error

Hey guys, Im installing a script and im getting intermittent internal server errors, this happends with other CGI scripts as well, so ive come to the conclusion that its a server problem (i have a dedicated server running apache and freeBSD)

Has anyone ever heard of this before or know how it can be fixed?
__________________
I get top rankings by using DigitalPoint Co-Op
GeXus is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 08-06-2004, 05:57 PM   #2 (permalink)
Inactive
 
littleFella's Avatar
 
Join Date: 06-20-04
Location: Ontario
Posts: 3,359
iTrader: 0 / 0%
Latest Blog:
None

littleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to behold
Internal server error doesn't necessarilly mean the server is at fault. so to speak. It may be your code's bug that the server does not know how to handle. If you try to divide by zero you may also get internal server error.

Is it 500 Error?
littleFella is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-06-2004, 06:24 PM   #3 (permalink)
Moderator
 
South's Avatar
 
Join Date: 10-13-03
Location: Statesboro, Georgia
Posts: 3,075
iTrader: 0 / 0%
South is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest orderSouth is a web professional of the highest order
500 errors suck. It's like "I'm telling you there's a problem, but I ain't telling you what it is!"

Lots of times it's just a permissions issue.

Also make sure you're uploading .cgi and .pl files in ascii.
__________________
"The powers not delegated to the United States by the Constitution, nor prohibited by it to the States, are reserved to the States respectively, or to the people."
South is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-07-2004, 02:31 AM   #4 (permalink)
Inactive
 
dave conz's Avatar
 
Join Date: 10-13-03
Location: New Zealand
Posts: 534
iTrader: 0 / 0%
Latest Blog:
None

dave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the rough
How to deal with internal server errors in perl.
dave conz is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-07-2004, 09:49 AM   #5 (permalink)
Contributing Member
 
Join Date: 10-14-03
Location: Top left of England, UK
Posts: 243
iTrader: 0 / 0%
Latest Blog:
None

trevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebody
Send a message via MSN to trevHCS
Edit: Re-reading your post I figured you probably know a bit about this stuff anyway, so I'd skip numbers 1, 3 and probably 4, but I'll leave them in incase their of use to anyone else.


Couldn't get Dave's web site link to load, so a few hints for anyone hitting CGI problems:


1) In your FTP software, the file should be listed with permissions rwx-xr-r and if not, chmod the file with the value 755


2) Just after the line that looks something like #!/usr/bin/perl put the following code:
[code:1:d70c4e6b8a]use CGI::Carp qw(fatalsToBrowser);[/code:1:d70c4e6b8a]

That'll hopefully give you a more friendly error message.


3) If that doesn't work, you may need to change your shebang line which looks something like: [code:1:d70c4e6b8a]#!/usr/bin/perl[/code:1:d70c4e6b8a]

Ask your hosts tech support what that should say although from my experience that one generally works.

This must be the first line with no line breaks or spaces above it!


4) Before you print anything to the screen you need to put a line such as:
[code:1:d70c4e6b8a]print "Content-type: text/html\n\n";[/code:1:d70c4e6b8a]

I used to put that somewhere near the top of the script during debugging then the script was ready for any outputs.


Finally, check your server logs as those will give the best indication of the causes.

Trev - who's really glad he doesn't do much Perl these days
trevHCS is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-07-2004, 02:46 PM   #6 (permalink)
Inactive
 
dave conz's Avatar
 
Join Date: 10-13-03
Location: New Zealand
Posts: 534
iTrader: 0 / 0%
Latest Blog:
None

dave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the rough
Could someone else please check my link? Seems to be working for me.
dave conz is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-07-2004, 03:02 PM   #7 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Works for me.
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-07-2004, 06:34 PM   #8 (permalink)
Inactive
 
dave conz's Avatar
 
Join Date: 10-13-03
Location: New Zealand
Posts: 534
iTrader: 0 / 0%
Latest Blog:
None

dave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the rough
Thanks J. We've been having server issues recently with an IP migration. Stats are down at the moment and I was a bit worried.
dave conz is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-09-2004, 08:41 AM   #9 (permalink)
Contributing Member
 
Join Date: 10-14-03
Location: Top left of England, UK
Posts: 243
iTrader: 0 / 0%
Latest Blog:
None

trevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebody
Send a message via MSN to trevHCS
Back on the right hand side of the Atlantic as well - must have been DNS.

Trev
trevHCS is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-09-2004, 05:53 PM   #10 (permalink)
Banned
 
Jonathan VanSchaack's Avatar
 
Join Date: 02-09-04
Location: New York
Posts: 1,567
iTrader: 0 / 0%
Latest Blog:
None

Jonathan VanSchaack is web crapJonathan VanSchaack is web crapJonathan VanSchaack is web crapJonathan VanSchaack is web crapJonathan VanSchaack is web crapJonathan VanSchaack is web crapJonathan VanSchaack is web crapJonathan VanSchaack is web crapJonathan VanSchaack is web crapJonathan VanSchaack is web crapJonathan VanSchaack is web crap
Send a message via ICQ to Jonathan VanSchaack Send a message via AIM to Jonathan VanSchaack Send a message via MSN to Jonathan VanSchaack Send a message via Yahoo to Jonathan VanSchaack
best way to check why its erroring out is too read the error logs, most hosts now give access to these in there control panel
Jonathan VanSchaack is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inrternal Server Error (500) schweermo Coding Forum 2 09-04-2006 06:36 PM
500 Internal Error Jason Web Design Lobby 19 06-15-2005 05:05 AM
301 redirect gives 500 server error seonewbee Coding Forum 1 09-18-2004 09:11 AM
Error changing name server at registrar everest63 Domain Name Forum 6 04-17-2004 07:45 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:23 PM.
© Copyright 2008 V7 Inc