Welcome to the new design! Please report any bugs or issues, thanks :)
Web Dev + WordPress + Security

Run WordPress Locally with _AMP

[ _AMPs ] To run WordPress on the Web, you need a domain name and web host. But you don’t need either of those things to run WordPress on your own computer. You need only to set up a local server environment that includes Apache, MySQL, and PHP. That may sound like a tall order, but thanks to packaged software bundles such as MAMP and WAMP, setting up a robust server environment on your computer is a relative breeze.

The names for these software bundles — MAMP, WAMP, LAMP et al — are abbreviations that specify the operating system and included software. For example, the abbreviation “MAMP” stands for Macintosh, Apache, MySQL and PHP. Likewise, the abbreviation “WAMP” stands for Windows, Apache, MySQL and PHP. In this article, we’ll see that there’s an “_AMP” for just about every operating system.

Like WordPress, most _AMPs are free, open-source, and licensed under the GNU General Public License. They also bring together some truly amazing programs & libraries, such as:

Apache, MySQL, PHP, APC, eAccelerator, XCache, phpMyAdmin, Zend Optimizer, SQLiteManager, Freetype, t1lib, curl, jpeg 8, libpng, gd, libxml, libxslt, gettext, libidn, iconv, mcrypt, YAZ, PHP/YAZ

Full instructions for installing and using _AMPs may be found on their respective sites. For now, here’s a quick run-down of all the best _AMPs for WordPress and beyond.

Get _AMPed

LAMP
For Linux, installing Apache, MySQL, and PHP is more like running specific commands to install what’s known as “LAMP”, with the “P” referring to Perl, PHP, or Python, depending on which components are installed. So for LAMP, there really isn’t any specific “bundled” software to install, but if you want something like that, there is also LAMPP, which is one of the four flavors of XAMPP.
MAMP
The star of the show, MAMP is _AMP for Mac OS X. Truly easy to use, MAMP comes in “PRO” flavor, a professional-grade version that does awesome stuff like multiple servers, external access, easier configuration, and tons more. No portable version of MAMP at the moment, but there are tutorials online for making it work.
XAMPP
Actually four separate distributions, there’s a XAMPP for Linux, Mac, Solaris, and Windows. The “X” in “XAMPP” refers to “cross-platform”, and the extra “P” is for Perl, which makes this particular _AMP even more capable. Portable/USB versions also available.
WAMP
Renamed WampServer, WAMP is exactly what you would expect: Apache, MySQL, and PHP for Windows. If you’re a Windows user, you’ll find WAMP a solid, flexible program that’s pretty easy to use. Also available in portable/USB flavors.

In addition to these top suites, there’s also JAMP, ZWAMP, and many others that include all sorts of programs and aren’t named with an abbreviation. For a more complete collection of AMP packages, check out the following links:

  • List of AMP Packages
  • Comparison of AMPs (404 link removed 2013/07/07 – Note: Wikipedia deliberately deleted this useful reference without any sort of replacement material more info — if you know of a suitable resource to use as a replacement, contact me)

Also check out these fine tutorials on setting up WordPress/MultiSite on MAMP:

Jeff Starr
About the Author
Jeff Starr = Fullstack Developer. Book Author. Teacher. Human Being.
Banhammer: Protect your WordPress site against threats.

7 responses to “Run WordPress Locally with _AMP”

  1. The problem with offline installs, is the upload of site once you have done.
    Do you have any suggestions or tricks related to it?

    Thanks

    • Jeff Starr
      Jeff Starr 2013/03/11 1:11 pm

      Actually I just tested a script that makes the transfer process a breeze, and I think there are plugins and other 3rd-party scripts that can help also.

  2. Which scripts and plugins Jeff? Thanks!

    • Jeff Starr
      Jeff Starr 2013/03/11 4:05 pm

      The one I tested will be posted in an upcoming article at Smashing Magazine, and the other scripts and plugins I’ve seen around on the Web. A few Google searches should reveal anything that’s available.

  3. Allright. Thanks for share!

  4. Siegfried 2013/04/14 1:31 pm

    I use WAMP and it is AWESOME! Thanks for sharing!

  5. M. S. Rosyidi 2013/05/24 8:09 am

    How about Uniserver? It’s so small and easy to use…

Comments are closed for this post. Something to add? Let me know.
Welcome
Perishable Press is operated by Jeff Starr, a professional web developer and book author with two decades of experience. Here you will find posts about web development, WordPress, security, and more »
.htaccess made easy: Improve site performance and security.
Thoughts
Playing the long game.
They have weaponized the idiots.
Good software never steals focus from the user. Even during startup.
After 10 years running my own business, I still manage schedules and tasks using old school post-it notes, sometimes simple sometimes very elaborate.
You know those sites, where you're trying to just grab a quick bit of information but the page is shifting all over the place as it loads up 3 million advertisements.
Selling two of my top WordPress domains, wp-zen.com & zen-wp.com $300 for both. Aged 9 years. Drop a line if interested.
Never force your users to type out a password (or any long string of characters) by blocking the paste function. Typing long strings leads to MORE errors than simple copy/paste.