Jump to content

Recommended Posts

Posted

I'm only getting 500 Internal server error atm from my website, and it has been like that the last 5 hours or so.

Could an admin please check some logs and tell me what the problem is?

 

I didn't do anything funny to the site what I can remember before it went down today.

 

(It's the website in the sig btw)

Posted

You had a bunch of php processes that haven't been executing properly. I killed them for you. One of them was shoutbox.php and the rest were index.php. Make sure your scripts exit properly because when you hit the process limit all new php processes will result in a 500 error.

Posted

thx for the help and info!

When doesn't a script exit properly? Is it when the code like never finishes (infinite loop)?

Posted

Make sure all your statements (if, else, for, etc.) are closed with a bracket } (if they were opened with { ) and your documents end with ?>

Example:

<?php
echo "Hello world!";
if ($enemy == "ninja")
{
runAway();
}
?>

And yes, make sure you don't have infinite loops :)

Posted

I see. Thx for telling me :)

Guest
This topic is now closed to further replies.
×
×
  • Create New...