FG
💻 Software

Can't access Apache in my CentOS Virtualbox

Fresh5 days ago
Mar 15, 202618846 views
Confidence Score0%
0%

Problem

I'm setting up a VirtualBox with CentOS so I can test out all my code, etc. on a Linux box instead of the Windows I use for development. I just got the SSH working (I SSH to localhost:2222 and it port forwards it to the virtualbox port 22). I'm trying to do the same thing with Apache, to get a web …

Error Output

[root@CentOS /]# cat /etc/sysconfig/iptables
# Generated by iptables-save v1.4.7 on Fri Jan 27 18:26:36 2012
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACC…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Can't access Apache in my CentOS Virtualbox

Low Risk

I believe the default CentOS firewall only allows port 22 for SSH. Since I assume you are running the VirtualBox VM on a protected network it would be safe to run the following as root to disable your firewall: This is assuming that you are doing yo…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment