trying to send a GET http to my Ubuntu LAMP on 14.04 install, I get a code 500. wonder if this is a firewall issue

July 16, 2017 2k views
Apache Configuration Management Ubuntu

Temperature: 65.98 F
[HTTP] begin...
[HTTP] GET... code: 500

this is from my device that is sending to droplet

3 Answers

Hi @rbjassoc

No, error code 500 means that something went wrong on the server. Read more here:

But we have to look at the error log to see more information. Unless the default error log location is changed, then use this command to show the last 30 lines:

tail -30 /var/log/apache2/error.log
by Mitchell Anicas
This guide focuses on identifying and troubleshooting the most commonly encountered HTTP error codes, i.e. 4xx and 5xx status codes, from a system administrator's perspective. There are many situations that could cause a web server to respond to a request with a particular error code--we will cover common potential causes and solutions.

here is the error
[Sun Jul 16 14:51:05.865836 2017] [:error] [pid 23672] [client 31] PHP Parse error: syntax error, unexpected '}' in /var/www/html/do071617.php on line 32

Have another answer? Share your knowledge.