- Ubuntu Precise (12.04)
- Apache2
- Php
- Composer
- Curl
- Git
Optional (uncomment from puppet/manifests/init.pp to enable)
- Wordpress
- Mysql
- PhpMyAdmin
- Vagrant (http://vagrantup.com)
- VirtualBox (https://www.virtualbox.org/)
- Puppet (http://docs.puppetlabs.com/guides/installation.html)
- Clone this repo into a local project folder
- From the project folder, run the command
vagrant up --provision
- this may take 3-5 minutes (NOTE: The first time youvagrant up
may take 5-10 minutes extra to download the image for the Ubuntu installation)
Running vagrant up
will create a htdocs
folder within your local project folder. This folder is synced to the /var/www/
folder on the virtual machine. Any files you edit locally will be immediately available for review on the server.
You can SSH onto the server itself by running the command vagrant ssh
- SSH into the server to install the DB by running the command
vagrant ssh
- Navigate to the root folder
cd /var/www/
- Edit files using either VIM or NANO using the following commands:
- VIM -
sudo vi FILENAME.html
- NANO -
sudo nano FILENAME.html
- Add the following to your local hostfile -
192.168.50.50 teamserver.mergeworld.com
- Login to WordPress admin and adjust site settings:
http://localhost:8080/wp-admin/
the username isadmin
, the password isvagrant
.- Go to Settings
- Changed WordPress Address (URL) and Site Address (URL) to
http://teamserver.mergeworld.com
- The site is now available at
http://wordpress.mergeworld.com
You can access the VM database using Workbench with the following settings
- Connection Method: Stnadard TCP/IP over SSH
- SSH Hostname: 192.168.50.50
- SSH Username/Password: vagrant/vagrant
- MySQL Hostname: localhost
- MySQL Username/Password: root/vagrant
- Navigate in your browser to http://teamserver.mergeworld.com/phpmyadmin
- Username/Password: root/vagrant
- SSH into the server to install the DB by running the command
vagrant ssh
- Access mysql by running the command
mysql -u root -pvagrant
- If you need a password (for anything - including mysql, it should be
vagrant
) vagrant suspend
- This command will put your local vm to sleepvagrant halt
- This will shut off your local vmvagrant destroy
- This will remove the vm completely and require rebuilding from scratch