Code Monkey home page Code Monkey logo

wp-vagrant's Introduction

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

wp-vagrant's People

Contributors

tierra avatar

Watchers

James Cloos avatar Josh Pollock avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.