.
├── app → Code
└── vagrant-demo
# Install vbguest for mouting
$ vagrant plugin install vagrant-vbguest
# Run
$ vagrant up
$ vagrant ssh
# Db secure check
$ sudo mysql_secure_installation
# Create user for db
$ sudo mariadb
# Inside mariadb cli with user 'admin' and password '123@Abc' (tobe change)
GRANT ALL ON *.* TO 'admin'@'localhost' IDENTIFIED BY '123@Abc' WITH GRANT OPTION;
FLUSH PRIVILEGES;
Example (Create Laravel app):
$ vagrant ssh
# Inside VM
$ curl -L -O https://getcomposer.org/download/latest-stable/composer.phar
$ php composer.phar create-project laravel/laravel /var/www/app