A LAMP (Linux, Apache, MySQL, PHP) stack running in a virtual machine created by Vagrant. Includes a fresh WordPress install in the var/www/html
folder on the guest machine.
To use this VM, you must have the following software installed:
Below are instructions on how to use this virtual machine. The first option includes instructions on how to use it without WordPress. The latter is instructions on how to use it with WordPress.
If you just want the LAMP stack without WordPress, follow these instructions:
- Edit the
bootstrap.sh
file, removing the WordPress installation. - Create a
www
folder in the project directory (same directory as theVagrantfile
). This folder will be synched up with the virtual machine and it is the root directory of the web server. - Boot up the virtual machine:
$ vagrant up
- Navigate
http://192.168.50.4/
in your browser.
-
Create a
www
folder in the project directory (same directory as theVagrantfile
). This folder will be synched up with the virtual machine and it is the root directory of the web server. -
Boot up the virtual machine:
$ vagrant up
- SSH into the virtual machine:
$ vagrant ssh
- Login to MySQL:
$ sudo mysql -u root -p
When prompted to enter the password, type: root
.
- Create the MySQL table for WordPress:
mysql> create database wordpress;
Verify the creation of the database:
mysql> show databases;
- Exit MySQL:
mysql> exit
- Exit the virtual machine:
$ exit
- Navigate
http://192.168.50.4/
in your browser.
When you are done with the virtual machine, you need to perform a teardown. See the various types of teardowns here.