About Win10 Homestead virtualbox ,Nginx

Posted October 1, 2018 2.8k views
Linux BasicsNginxMiscellaneousGetting StartedUbuntu 18.04

I still got failed after trying many times. I was so said . Please help me to check it ! Many Thanks !

Failed to visit all below uri :

No any Response from Virtual Host.

Of course I can ping from address).
And also can ping from Virtualhost to

All the steps and configurations are following.

*Windows10 Home
Vagant : 2.15.0
VirtualBox : VirtualBox-5.2.18-124319-Win.ext 64bit

$ vagrant box add laravel/homestead
$ git clone Homestead
$ cd homestead
$ git checkout v7.18.0
$ vagrant init laravel/homestead
$ vagrant box list

laravel/homestead (virtualbox, 0)

Administrator@DESKTOP-GKURVF2 MINGW64 ~/homestead ((v7.18.0))
$ vagrant up –provision
Bringing machine ‘default’ up with 'virtualbox’ provider…
==> default: Importing base box 'laravel/homestead’…
==> default: Matching MAC address for NAT networking…
==> default: Setting the name of the VM: Homesteaddefault1538398439271_53279
==> default: Clearing any previously set network interfaces…
==> default: Preparing network interfaces based on configuration…
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports…
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM…
==> default: Waiting for machine to boot. This may take a few minutes…
default: SSH address:
default: SSH username: vagrant
default: SSH auth method: private key
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default: Inserting generated public key within guest…
default: Removing insecure key from the guest if it’s present…
default: Key inserted! Disconnecting and reconnecting using new SSH key…
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM…
==> default: Configuring and enabling network interfaces…
==> default: Mounting shared folders…
default: /vagrant => C:/Users/Administrator/Homestead

$ vagrant global-status

id name provider state directory

8ea2592 default virtualbox running C:/Users/Administrator/Homestead

$ vagrant ssh
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-32-generic x86_64)

System information as of Mon Oct 1 12:57:14 UTC 2018

System load: 0.22 Processes: 127
Usage of /: 9.5% of 61.80GB Users logged in: 0
Memory usage: 40% IP address for eth0:
Swap usage: 0% IP address for eth1:

0 packages can be updated.
0 updates are security updates.

*vagrant@vagrant:~$ php -v
PHP (cli) (built: Aug 19 2018 07:16:54) ( NTS )
Copyright © 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright © 1998-2018 Zend Technologies
with Zend OPcache, Copyright © 1999-2018, by Zend Technologies
with blackfire v1.22.0~linux-x64-non_zts72,, by Blackfire

*vagrant@vagrant:~$ mysql -u homestead -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.23-0ubuntu0.18.04.1 (Ubuntu)

Copyright © 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective

Type 'help;’ or ’\h’ for help. Type ’\c’ to clear the current input statement.

mysql> show databases;
| Database |
| informationschema |
| homestead |
| mysql |
| performance
schema |
| sys |
5 rows in set (0.00 sec)

<^>vagrant@vagrant:~$ nginx
nginx: [alert] could not open error log file: open() “/var/log/nginx/error.log” failed (13: Permission denied)
2018/10/01 13:23:14 [warn] 2608#2608: the “user” directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1
2018/10/01 13:23:14 [emerg] 2608#2608: open() “/var/log/nginx/access.log” failed (13: Permission denied)

vagrant@vagrant:~$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
vagrant@vagrant:~$ su
root@vagrant:/home/vagrant# nginx
root@vagrant:/home/vagrant# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful


ip: “”
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/

- ~/.ssh/id_rsa

- map: D:/WWW/Laravel
to: /home/vagrant/code

- map:
to: /home/vagrant/code/public

- homestead


# Every Vagrant development environment requires a box. You can search for
# boxes at = “laravel/homestead”

# Create a private network, which allows host-only access to the machine
# using a specific IP. “private_network”, ip: “”


VirtualBox Configration:

IPv4 address:

Link: NAT

Please help me ! thank a lot !

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!