• I have set up a database and have wordpress in the /var/www/html folder. My wp-config is configured and I now have the Ubuntu desktop (Gnome) installed. My issue is I can not bring up the install screen to connect WP to the database! I have 2 network adapters in place the first allows me to connect to the internet the second is a host-only adapter allowing me to communicate with the computer I am using.

    When I ran ifconfig on the guest, I saw 3 viable IPs: eth0 = 10.0.2.15, eth1 = 192.168.56.102, lo = 127.0.0.1
    I tried all of these IPs in the guest Firefox browser all give back: Unable to connect:
    Firefox can’t establish a connection at 192.168.56.102
    Firefox can’t establish a connection at 10.0.2.15
    Firefox can’t establish a connection at 127.0.0.1

    On my main computer I have an install of xampp which at localhost/ brings up my xampp install.

    Stuck behind a rock in a hard place!

    help

    rad1964

Viewing 4 replies - 1 through 4 (of 4 total)
  • So to clarify the situation:
    – You have VirtualBox hosting a Ubuntu install with gnome desktop.
    You have installed a set of WordPress files at “/var/www/html” in the virtual file system.
    This virtual OS has two virtual network adapters, one can reach the internet at large, the other is just a loop into the hosting computer.
    Some Questions:
    A) Have you installed a LAMP server in this virtual machine ?
    B) How are the network interfaces configured ? There is NAT and BRIDGED, configuring them can be tricky.

    – On the hosting computer you have an XAMPP install. Is this the apache and mySQL server you are trying to access from within the Virtual Ubuntu ?
    More questions:
    C) What is the OS of this host computer ?
    D) Does its XAMPP system work from this computer (not the VM) ?

    Whenever you install an apache server you need to show that the “It works” page is accessible. The next test is to access the WordPress file “readme.html”. Both these are basic and essential stepping stones, or more likely stones you go back and step on when leaping over them fails.

    Thread Starter rad1964

    (@rad1964)

    Yes LAMP is installed on the VirtualBox.
    The network interfaces are as follows: 1 – Nat, 2 Host-Only.
    Xampp should not be in this equation, but of course on my windows 7 machine, when I type in a browser localhost it forwards to my xampp install at localhost/xampp.

    I want to connect my WordPress database which has been configured on the VM as well as my WordPress install also on the VM machine. originally I had the VM configured in the HOSTS file to point to 127.0.0.1 but xampp has that configured already.

    I went into the VM and did ifconfig and found that it was assigned 192.168.56.102. In my windows 7 machine it has an IP of 192.168.56.1
    So in my Win7 hosts I added a line: 192.168.56.102 sandbox.dev

    When I ping from my win 7 machine 192.168.56.102 OR sandbox.dev they both return a ping.

    I hope I answered all your questions.. I guess my next step is probably to change the host-only Network adapter to bridged?

    So confusing as the internet aka Google has all these answers for the same problem and one doesn’t know where to start!

    I am new to this…
    Oh yes, I also made an inbound rule in my firewall exceptions: allow local address 192.168.56.1 / remote address 192.168.56.102

    rad1964

    Not sure which firewall you are talking about.

    Putting the ip and name in the win7 hosts file is a good step.
    You also want to add “127.0.0.1 sandbox.dev” to the Ubuntu hosts file.

    See if this works, if not then start experimenting with the host-only network adapter configuration.

    Maybe Ubuntu Desktop does not allow traffic over port 80 by default, in which case you may need to allow incoming traffic on port 80. From your Ubuntu machine, like so:

    sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
    (Allows all incoming web traffic.)

    1 – Nat, 2 Host-Only.

    My network adapters are configured the same. This looks correct.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP install in VirtualBox – last step eludes me’ is closed to new replies.