Jump to content
The Uniform Server Community

HTTP Error 500


Demonten
 Share

Recommended Posts

So I'm just trying to test a tiny little php file I made for my computer science class. Normally, Uniform Server works for me without trouble. Today, however, it gives me this:

 

HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

 

I restarted Uniform Server etc. I'm not really sure why that one file won't work seeing as all my other files work

Link to comment
Share on other sites

You could always look at the error.log and access.log files for a bit more info. You'll find them in \UniServer\usr\local\apache2\logs directory.

Regards,

BobS

Link to comment
Share on other sites

Yeah, I did look at logs, but apparently the logs I looked at before I posted were for something different and I didn't think to look at those because I didn't think it would be logging my script errors. It turns out I was missing a curly bracket near the end of my script. I had a bunch of nested if statements and miscalculated just how many ending brackets I needed and that was the only issue. Instead of it returning the usual syntax error stuff it gave me HTTP 500 and brought me to this conundrum. thanks for the help.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...