This project create a basic LAMP (PHP) development environment using Vagrant and VirtualBox.
- Ubuntu 18.04 (Bionic Beaver)
- Apache/2.4.29
- MySQL Ver 14.14
- PHP Version 7.2.19
- phpMyAdmin Ver 4.6
- forwarded_port, guest: 80, host: 80 - http://localhost
- forwarded_port, guest: 443, host: 443 - https://localhost
Vagrant is a tool for building and distributing development environments.
Development environments managed by Vagrant can run on local virtualized platforms such as VirtualBox or VMware, in the cloud via AWS or OpenStack, or in containers such as with Docker or raw LXC. Vagrant README GitHub Project
VirtualBox is a general-purpose full virtualizer for x86 hardware, targeted at server, desktop and embedded use. About VirtualBox Wiki Page
LAMP (Linux, Apache, MySQL,PHP) is an archetypal model of web service stacks, named as an acronym of the names of its original four open-source components: the Linux operating system, the Apache HTTP Server, the MySQL relational database management system (RDBMS), and the PHP programming language. LAMP Wikipedia
Install these packages first
Run these commands on the terminal. This step can take a while
git clone https://github.com/tavaresasilva/vagrant-dev-lamp.git
cd vagrant-dev-lamp
vagrant up
It's done
Use the html directory to build your project and access localhost to see the work. You can access phpmyadmin with vagrant default username and password.
Connects to virtual machine via SSH
vagrant ssh
Turn off the virtual machine
vagrant halt
Turn on the virtual machine
vagrant up
Deletes the virtual machine. Keep files in vagrant directory
vagrant destroy