habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Easy Fix XAMPP Server Error (Error 500)

30 sec read

Hi, Today, i found errror for my lab coding php with xampp. I have write a code form login in php.

Server error!
  The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
  If you think this is a server error, please contact the webmaster.
  Error 500
  localhost
  Apache/2.4.33 (Win32) OpenSSL/1.1.0h PHP/7.2.6 

I am not aware about syntax php that i have wrote.

$_SESSION['id'] = $row['id'];
                header("Location : index.php?loginsuccess");
                exit();

I am browse to google, and found this link . Basically i have doing little bit mistake write ‘header(“Location : index.php?loginsuccess”); 😀

i Should write this :

header("Location: index.php?loginsuccess");

The error came from the space between Location and the colon ( : ).


See also  Zimbra Enable DMARC, SPF and DKIM
habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

2 Replies to “Easy Fix XAMPP Server Error (Error 500)”

  1. brotherrr….you saved my day for real…..thank you so much…. I was frustrated where I was going wrong and it was just a tiny damn space!!
    Thanks once again

Leave a Reply

Your email address will not be published. Required fields are marked *

Never miss good article from us, get weekly updates in your inbox