Note: Vagrant::Hostsupdater is optional to automatically add the entry to the hosts file. If you skip that, you will need to manually edit the hosts file and add the related entry yourself.
$ vagrant plugin install vagrant-hostsupdater
$ mkdir <project-name>
$ cd <project-name>
$ git clone https://github.com/johnperricruz/vagrant-ubuntu-18-LEMP.git
$ cd vagrant
$ vagrant up
$ vagrant ssh
All Vagrant commands like vagrant halt
, vagrant destroy
and vagrant suspend
are applicable.
MySQL root:
User: root
Password: password
Additional MySQL access:
User: vagrant
Password: password
Database: vagrant
config
- Contains all services related configuration, please modify it accordingly to your usage.logs
- Contains all the logs generated from nginx as well as PHP errors.www
- The web root of your web application.