in a bit of a bind here. I'm trying to move a website (www.monkhouselaw.com) from one hosting company to my Digital Ocean VPS. I've changed the DNS settings to:
* -> 107.170.29.18
www -> 107.170.29.18
monkhouselaw -> 107.170.29.18
This then directs to an Apache Virtual Host on my VPS.
Currently I'm just trying to load a single PHP index page on my server. Once it works I'll bring over the WordPress install. Sadly, it's, well, not working.
Accessing www.monkhouselaw.com returns a 503 error currently. I simply can't determine why. Examining the Apache error log shows me:
(111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:3000 (localhost) failed
[Sun Jun 05 16:44:46.900331 2016] [proxy:error] [pid 2207] AH00959: ap_proxy_connect_backend disabling worker for (localhost) for 60s
[Sun Jun 05 16:44:46.900339 2016] [proxy_http:error] [pid 2207] [client 108.63.121.42:51559] AH01114: HTTP: failed to make connection to backend: localhost, referer: (long url)
And, later, this:
[Sun Jun 05 16:45:21.841236 2016] [proxy:error] [pid 2198] AH00940: HTTP: disabled connection for (localhost)
I've tried checking to see if port 3000 on localhost is listening, and it's not. However, there's a pre-existing virtual host that should be, as I understand it, redirecting requests to the 3000 port to the 80 port. The file is 000-default.conf. There's much more to the file than the following, but here's the relevant bits:
<VirtualHost *:80>
...
LoadModule proxy_module {path-to-modules}/mod_proxy.so
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
...
</VirtualHost>
Though honestly, I'm unsure why it's even attempting to access port 3000, as the virtual host file for monkhouselaw is directed to the 80 port:
<VirtualHost *:80>
DocumentRoot /var/www/monkhouse
ServerName monkhouselaw.com
<Directory "/var/www/monkhouse">
allow from all
Options None
Require all granted
</Directory>
</VirtualHost>
At this point I'm at a loss. Googling reveals a great many results concerning SELinux, which doesn't appear to be installed. I've seen recommendations, for example, to type the following:
togglesebool httpd_can_network_connect
Which simply returns me the message that the program 'togglesebool' does not exist.
In essence, this is a serious issue that I need to resolve, and I've been through the double-digit Google result pages trying to find solutions with no luck.
Is anyone able to offer assistance?