Skip to content

heitorsilva/vagrant-webserverbox

Repository files navigation

WebserverBox

This repository is a Vagrant box to build up a Debian server running NGINX (latest), PHP 7, Ruby 2.3, Python 3.4, MySQL 5.7 and NodeJS 6.

It also has a Samba, to share files with your host machine.

====================

Instructions

This box was made in a way that supports Vagrant 1.8.1 or higher. It also requires VirtualBox 5.

After cloning this repository on your computer, from inside the vagrant-webserverbox directory, type:

vagrant up

You can log to this box by using:

vagrant ssh

The default user is vagrant, and its password is vagrant.

You can access this box with below addresses:

http://192.168.1.2 # which points to /home/vagrant/public_html

ATTENTION
If you run Vagrant on a Unix-like operating system, it's possible that it will ask a password every time you do vagrant up or vagrant halt.
This password will be the one from the user that has the right to run sudo commands.
In case you want Vagrant to never ask for a password again when using the mentioned commands, you must add one line in the sudoers file.

sudo visudo

At the end of the file, add this:

Cmnd_Alias VAGRANT_HOSTMANAGER_UPDATE = /bin/cp /home/<YOUR_USER>/.vagrant.d/tmp/hosts.local /etc/hosts
%sudo ALL=(root) NOPASSWD: VAGRANT_HOSTMANAGER_UPDATE

Change <YOUR_USER> for the user that you use on your operating system, that has permission to run sudo commands.

Reference: http://www.josheaton.org/how-to-automatically-add-hosts-to-vagrant-without-a-password-on-os-x/

====================

Samba

The folder that is shared is: /home/vagrant/public_html

====================

Passwords

Debian:

username=vagrant
password=vagrant

MySQL:

username=root
password=

About

Vagrant box to build up a Debian server running NGINX (latest), PHP 7, Ruby 2.3, Python 3.4, MySQL 5.7 and NodeJS 6.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published