Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5962

Setting up Apache web server with Vagrant

$
0
0

UPDATE: So I'm not sure what was wrong but I completely reinstalled Vagrant, Virtual Box, Ubuntu, and Apache (probably overdid it by reinstalling everything). Everything works correctly now.


I am trying to install Apache web server in Ubuntu 14.04. I got the image from Vagrant's atlas site. The image is called: ubuntu/trusty64.

I can get Ubuntu initialized and running perfectly fine. I install Apache with the following command:

sudo apt-get install apache2

However, back on my local machine (Windows 10), I try to visit the ip specified in the Vagrantfile file:

config.vm.network "private_network", ip: "192.168.2.7"

Nothing comes up. Shouldn't I see the welcome page for Apache as seen here: Apache Ubuntu Default Page.

All I get is "Unable to connect". Am I not understanding how Vagrant works? How can I use the Ubuntu machine as a web server?


Viewing all articles
Browse latest Browse all 5962

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>