Z
Z
ZaurK2018-01-31 11:47:50
PHP
ZaurK, 2018-01-31 11:47:50

Why doesn't the index page open in the browser?

Hello! I installed virtual box and vagrant, then created a folder on the desktop and created a vagrantfile in it with the vagrant init -m ubuntu/trusty64 command, the contents are

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/trusty64"
end

Then, with the vagrant up command, I launched it all and the box downloaded, the virtual machine started. Added port forwarding
Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.network :forwarded_port, guest: 22, host: 8888, host_ip: "127.0.0.1"
end

Reloaded with vagrant reload command.
Created an index.php file at the root with the content "Its run!" and tried to open 127.0.0.1:8888 in the browser , but I get "Page not available". Help me understand what I'm doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question