Skip to content

madrien/wp-vagrant

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WordPress Vagrant Boxes

While we're fans of the popular VVV project, this Vagrant configuration takes a different approach. We like to think that VVV is great for up-to-date development tools, working on plugins and themes, and building entirely new websites. However, this configuration was built for the purpose of testing and debugging mostly WordPress core, and ensuring compatibility with older (but still supported) server configurations.

This configuration also doesn't make any assumptions about your preferred development workflow. It does not checkout or install WordPress at all. It's up to you if you would like to unpack and install a ZIP, checkout from SVN, or clone from git. However, the web server is preconfigured to look for WordPress in a specific location.

Configurations Provided

wordpress-php52

  • Debian Squeeze (6.0)
  • Apache 2.2 (suPHP, port 80 only)
  • PHP 5.2.17 (painstakingly pulled from Dotdeb Lenny repos)
  • PHP Extensions: curl, gd, imagick, mcrypt, mysql, xdebug
  • PHPUnit 3.6.12
  • MySQL 5.1.72
  • Subversion 1.6.12, Git 1.7.2.5
  • Node.js 0.10.22, Grunt

wordpress-php53

  • Ubuntu Precise (12.04) LTS
  • Apache 2.2 (suPHP, port 80 and 443)
  • PHP 5.3.10
  • PHP Extensions: curl, gd, imagick, mcrypt, mysql, xdebug
  • PHPUnit 3.7.31 (or later)
  • MySQL 5.5.34
  • Subversion 1.6.17, Git 1.7.9.5
  • Node.js 0.10.26 (or later), Grunt

wordpress-php54

  • Debian Wheezy (7.3)
  • Apache 2.2 (suPHP, port 80 and 443)
  • PHP 5.4.4
  • PHP Extensions: curl, gd, imagick, mcrypt, mysql, xdebug
  • PHPUnit 3.7.31 (or later)
  • MySQL 5.5.35
  • Subversion 1.6.17, Git 1.7.10.4
  • Node.js 0.10.21, Grunt

Getting Started

  1. Install both VirtualBox and Vagrant.
  2. Clone this repository to a convenient location for your development:
    • git clone https://github.com/tierra/wp-vagrant.git
    • cd wp-vagrant
  3. Check out (or clone) the develop repo to the wordpress folder:
    • svn checkout https://develop.svn.wordpress.org/trunk wordpress or
    • git clone git://develop.git.wordpress.org/ wordpress
  4. Add the following to your hosts file:
    • 192.168.167.9 wordpress-php52.local
    • 192.168.167.10 wordpress-php53.local
    • 192.168.167.11 wordpress-php54.local
  5. Start Vagrant: vagrant up [box]
    • Without naming a box, all boxes will be started (this will take a long time), but you can also start just wordpress-php52, wordpress-php53, or wordpress-php54 individually.

Note that Apache is configured to point to the wordpress/build directory, so you need to remember to run grunt from the WordPress directory after checking out the code. Optionally, you could also just install WordPress normally inside the wordpress/build directory without using the develop repository. All boxes are pre-configured with Node.js and Grunt, so if you don't have these tools installed locally, you can just SSH into the box, and run the following:

cd /vagrant/wordpress
npm install
grunt

With the boxes started, you can reach them at one of these locations:

MySQL Configuration

The MySQL root password is "wordpress", and all boxes come with two pre-configured databases:

  • wordpress (this is meant for a regular installation)
  • wordpress-tests (this is meant for use with PHPUnit tests)

A single account with rights all databases for convenience:

  • Username: wordpress
  • Password: wordpress

About

WordPress Vagrant boxes for testing PHP 5.2, 5.3, and 5.4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors