Using XAMPP for development work

Running a hosted WordPress site on a cloud service is made possible by a number of services. I use Cloudways, but there are others such as WPEngine. In order to do development in those environments a developer needs to know Linux, shell, and remote headless environments including secure shell access. The software that must be installed on a remote server is frequently referred to as LAMP, which stands for Linux Apache MySQL, PHP. Typically, LAMP is installed as a series of servers which much be installed and configured on a Linux machine. That is a fairly complex setup beyond the beginner Web developer.

There is also a Macintosh equivalent called MAMP where M stands for Macintosh rather than Linux. MAMP is neatly packaged up as a single downloadable application. When you run the MAMP application it presents a simple control panel that allows you to start, stop, and monitor all of the various servers that are built into the application.

However, for developers without those skills there are also several open source solutions that allow you to run a full stack environment on a Mac, Linux, or Windows personal computer. One that I choose is called XAMPP. The ‘X‘ means that it will run on Linux, Windows, or Macintosh. The one great simplification is that it is all packaged up as a single application like MAMP is.

XAMPP is available from an open source software group named Apache Friends. There are download links there for Windows, Linux, and OS X (Macintosh OS). Each of those are simple application download and installs. If you can download and install an app on your machine, you can download and install a complete full stack!

The name XAMPP means that it includes these technologies built in:

  • X – Can be installed on Windows, Macintosh, or Linux
  • AApache web server
  • M MySQL database
  • PPHP programming language built into the web stack
  • PPerl is a highly portable and very versatile programming language and library

On the Apache Friends page there is a short and well done video showing the installation and startup of XAMPP on Windows.

Once it is installed it is configured to run. On Windows a new XAMPP application is added to the Start Menu. Once it is started you can start and stop all the components of the stack, administer their details, see the error logs and more. There are also buttons to get to Windows Explorer, a shell, the services menu, and more.

Once Apache and MySQL services are started you can point your browser to the URL http://localhost and be greeted by the XAMPP welcome page. At the top of that page there is a dark blue menu bar. There you will find links to:

  • Apache Friends – The organization that supports XAMPP
  • FAQs – obvious
  • HOW-TO Guides – how to do many XAMPP tasks
  • PHPInfo – an extensive report of the live status of all the components of your PHP installation. This includes lots of details you may need to know when developing and debugging your stack and any web pages that you will host in XAMPP. You don’t need to try to learn about all those details, thankfully. In the upper right of the page is a ‘php’ logo which leads to its extensive documentation.
  • phpMyAdmin – a very helpful control panel for your MySQL database and other PHP details. On that page, under the ‘phpMyAdmin’ title of the sidebar, there is a question mark icon that leads to the documentation for this control panel.
  • Finally, you can add things to this menu, but that is a lesson for another day

If you have read this and followed the directions to do the install, then congratulations are in order because you now are hosting a full stack web server on your personal computer. You have completed another challenge from the challenge list. If you have not done so while reading this page, consider taking the time to do that now.

Other how-to pages will guide you through processes like installing your own WordPress server, learning how to debug it and much more.