Skip to content

Local environment for Wordpress development with LAMP + Vagrant + Ansible

Notifications You must be signed in to change notification settings

maxkraszewski/lamp-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LAMP Wordpress

Create a local environment for quickly test Wordpress websites.

Includes:

  • Ubuntu 14.04 Trusty
  • Apache2
  • PHP 5.6
  • MySQL 5.5
  • Wordpress (latest)

If you want use nginx instead of Apache, you might check this repository: https://github.com/minimalart/lemp-wordpress

Requirements

Installation

  1. Install Virtualbox, Vagrant and Ansible
  2. Install Vagrant::Hostupdater plugin
$ vagrant plugin install vagrant-hostsupdater
  1. Clone repository into a desired folder
$ git clone https://github.com/minimalart/lamp-wordpress.git
  1. Move to repository folder
$ cd lamp-wordpress

You will ask for your machine admin password to update host file.

  1. (Optional) Customize local ip

If you use the default box, no configuration should be required to get up and running. However if you want to use an IP address other than 192.168.100.102, replace that address with the one you wish to use in Vagrantfile (line 8)

  1. Run the commands below:
$ vagrant up

The setup will take some time to finish. In the meantime, you can have a sword fight.

  1. Browse to http://lamp-wordpress.local and enjoy.
  2. You can login to the WP Admin Panel in http://lamp-wordpress.local/wp-admin with user: wpadmin and password: wppass

Tips and Hints:

  • All users and passwords for accesing WP Admin Panel are located in ansible/settings.yml file.
  • You can ssh into the VM with vagrant ssh command, with no password.
  • WP-CLI is installed, so you can run wp commands as described in http://wp-cli.org/

About

Local environment for Wordpress development with LAMP + Vagrant + Ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published