Developing your website is always a landmark moment, especially when it’s your first time. However, despite almost every host offering a way to spin up a WordPress install on your server, this isn’t recommended.
The better way is to create a site on your computer, and upload it once you’re ready. Using a tool such as Varying Vagrant Vagrants (VVV) for WordPress development is a great, platform-recommended way to do it.
In this article, we’ll show you how to get up and running with VVV. Before this, we’ll also talk about the alternatives at your disposal. First, lets discuss why you shouldn’t develop your site online.
Why You’d Want to Create Local WordPress Sites
Your host often becomes a go-to resource or point of support when creating a WordPress website (especially your first one). This is because your host should know better than anyone how to best install and work with the site creation packages it offers.
However, there are a few reasons why developing a WordPress website on a live server isn’t the best way to proceed:
- You’re using your site’s resources when it’s not necessary.
- Despite potentially having access to staging or site-restriction functionality, you’re still developing your site ‘in public’.
- Any development bugs could affect all of the sites on your network, causing chaos if the worst happens.
- There are organic security issues with developing your site on a live server, because your website will naturally be incomplete for large periods of time.
There are plenty of knock-on effects too, such as feeling like you’re against the clock with regards to getting your site live. As such, going offline and giving yourself a ‘walled sandbox’ environment to develop your site is easier on the wallet and the nerves.
Local Website Development: The Basics You Need to Know
Local website development generally involves using a ‘stack’ of software to emulate a live server as well as possible. Traditionally, sites would be developed on a ‘LAMP’ stack, using software commonly found on live servers:
Combined, this turns your computer into a local server, letting you create and test your site in full in a similar environment to your live server.
However, a traditional LAMP stack has drawbacks: It can be a resource-hog, and it’s not the best solution for consistent remote development.
Tools such as Vagrant were designed to provide lean and portable virtual development environments. Combined with a solution such as VirtualBox or VMware, they let you create ‘virtual machines’ – encapsulated servers that are essentially fully-functional computers to work inside of.
Introducing Varying Vagrant Vagrants (VVV) for WordPress Development
To summarize, while a traditional LAMP stack is a solid way to develop websites locally, tools such as Vagrant and VirtualBox supercharge the process.
Varying Vagrant Vagrants (VVV) is an odd-sounding solution to
This article was written by Tom Rankin and originally published on WPKube.