Error 500: Script Execution Failure

Status
Niet open voor verdere reacties.

hawkins

Gebruiker
Lid geworden
18 jun 2009
Berichten
57
Ik heb een foutmelding maar ik weet niet echt wat ze bedoelen:

Snapt iemand het


[SITENAME] [Wed Dec 02 20:16:01 2009] [error] [client IP CODE] Premature end of script headers: index2.php
Error 500: Script Execution Failure
Description: The server encountered an internal error or misconfiguration and was unable to complete your request.

Most common reasons for returning this error message are:

• File Upload Mode
When you upload Perl, CGI scripts via FTP you should use always ASCII mode. If you get "Error 500: Script Execution Failure" you should check whether your FTP client uses ASCII mode when uploading your scripts, because if it uses BINARY mode to upload your scripts they won't work on the server. The problem caused by wrong upload mode is associated with the way different operating systems handle the "end of line" character. Unix system uses a "line-feed" (LF), Windows uses a "carriage-return" (CR) and "line-feed" (LF) pair. That's why it is very important that you set the uploading mode to ASCII.

• File Permissions
When you upload scripts via FTP the file permissions are set by default to 755. If you get "Error 500: Script Execution Failure" you should check whether your scripts have 755 permissions. Otherwise your scripts have lower level of permissions and does not support execution upon request. The octal representation of the 755 permission is equal to the following textual format: -rwxr-xr-x
Most FTP clients support the CHMOD command which is used for setting file permissions. In case you have set improper permissions to your scripts, use your FTP client and set "Read, Write, Execute" permissions for the owner, "Read, Execute" permissions for the group and everyone else.

• Script Errors
This is the third well known reason for getting "Error 500: Script Execution Failure" upon execution of your scripts. Check your scripts for any obvious syntax or programming errors to make sure your code is not broken.


Remember: When you get a "Error 500: Script Execution Failure", you should always check for any file uploading problems (ASCII/BINARY) and the executable permission settings. Once those are checked and verified, it looks like there is a syntax error or some other problem in the script.
 
Het is best een duidelijke error:
(...) Premature end of script headers: index2.php
in index2.php staan blijkbaar wat headers. Ergens zit een fout in een (of meer) van deze headers. Even dat bekijken, of de code even posten!
 
Mijn script:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Generals modern warefare</title>


<LINK REL="SHORTCUT ICON" HREF="pictures/icon.ico">





</head>

<body bgcolor="black" style="color:white;">
<center>

<img src="pictures/Wait-screen.jpg" />
<br>
<object width="350" height="50">
<param name="loading" value="pictures/loading.swf">
<embed src="pictures/loading.swf" width="350" height="50">
</embed>
</object>

</center>
</body>
</html>

<html>
<head>
<script type="text/javascript">
function site()
{
window.location.href='include2.php';
}
function popup()
{
t=setTimeout('site()',4000);
}
</script>
</head>

<body onload="popup()">
</body>
</html>
 
Als dat de code was van index2.php, denk ik dat de error veroorzaakt wordt door een .htaccess bestand, of mischien een fout in de server-configuratie (mits het apache was).


ps.

niet gerelateerd aan je vraag, maar alsnog: deze code:[js]t=setTimeout('site()',4000);[/js]moet je even veranderen naar[js]var t = setTimeout(site, 4000);[/js] ;)
 
Laatst bewerkt:
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan