2
1
after having this issue this morning I have done A LOT of reading of other questions. So hopefully I can provide plenty of info to assist in solving this
I can SSH using standard port 22 to the VM using either Bridged or Host-only networking. However when I try and visit a website (at this stage only hoping to see the welcome page) I get ERR_CONNECTION_REFUSED
- I'm using VirtualBox 4.3.26 on OS X 10.10.3
- The VM with the problem is CentOS 7 base
- I have installed Apache2 (httpd) using yum
- Apache is running
- No issues with Ping
- Internet connectivity fine fro mwithin VM when using any networking mode
- SELinux is disabled
- IPtables is disabled
- SSH on 22 works fine
Netstat says we are listening on 80
tcp 0 0 :::80 :::* LISTEN
- I have an Ubuntu 14.10-server VM with no issues. Just installed Apache2 with apt-get and am able to see the welcome page at 192.168.0.102 (IP while testing with Bridged mode) as read from ifconfig same as I'm trying to do with CentOS
Does anyone know what my issue could be?
I can't think where the request is possibly being refused.
Have you started Apache on Centos? It doesn't automatically start after installation like with Ubuntu. I use Virtualbox a lot, and usually install a desktop VM instead of the server version if it's for local use only. It gives the same functionality, and a lot more convenience. You can use Firefox in the VM itself, as well as all the other GUI tools. – SPRBRN – 2015-05-14T09:24:20.843
Yes, Ill update the OP – joevallender – 2015-05-14T09:26:25.853
What do the httpd logs tell you? – SPRBRN – 2015-05-14T09:49:03.870
Nothing appears in access or error log unless, for instance I wget localhost from the VM itself – joevallender – 2015-05-14T10:06:25.767