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
- Install Virtualbox, Vagrant and Ansible
- Install Vagrant::Hostupdater plugin
$ vagrant plugin install vagrant-hostsupdater
- Clone repository into a desired folder
$ git clone https://github.com/minimalart/lamp-wordpress.git
- Move to repository folder
$ cd lamp-wordpress
You will ask for your machine admin password to update host file.
- (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)
- Run the commands below:
$ vagrant up
The setup will take some time to finish. In the meantime, you can have a sword fight.
- Browse to http://lamp-wordpress.local and enjoy.
- You can login to the WP Admin Panel in http://lamp-wordpress.local/wp-admin with user:
wpadmin
and password:wppass
- All users and passwords for accesing WP Admin Panel are located in ansible/settings.yml file.
- You can
ssh
into the VM withvagrant ssh
command, with no password. - WP-CLI is installed, so you can run
wp
commands as described in http://wp-cli.org/