Software Engineering in WordPress, PHP, and Backend Development

Category: Articles (Page 20 of 257)

Personal opinions and how-to’s that I’ve written both here and as contributions to other blogs.

Installing, Configuring, and Setting Up Xdebug in Visual Studio Code

TL;DR: This is everything that needs to be done to install Xdebug with a Homebrew-based environment and to work with the software within Visual Studio Code.


Though I’ve recently become a fan of using Ray (1, 2) for much of my lightweight debugging, this doesn’t mean I don’t think it’s important to have Xdebug installed and configured in Visual Studio Code.

If you follow the steps I’ve outlined starting in the previous post, it’s relatively easy though it still requires a little bit of manual work to get started.

This is how you can set up Xdebug with a Homebrew-based configuration and Visual Studio Code.

Continue reading

Installing PHP 7.4 and PHP Monitor for WordPress Development

TL;DR: How to uninstall PHP 8.1, install PHP 7.4, why you should do so, and one extra utility to helps manage PHP packages and modules.


When I wrote about how to fix WordPress, PHP, MariaDB, and Homebrew, I didn’t cover some of the other larger issues that I experienced when working backwards into the solution.

I need to give Ihor a hat tip here because he and I spoke about this more on Twitter regarding the relationship between WordPress, PHP 7.4, 8.0, and 8.1.

I’d be remiss if I didn’t clarify the following:

  1. I was running PHP 8.1.
  2. WordPress is not compatible with PHP 8.1
  3. WordPress is [allegedly] compatible with PHP 8.0 but I’ve not tested it or my tools against this version because I wanted to have full compatibility.
  4. I downgraded my system to PHP 7.4.27 until I get my entire set up configured as I like. Then I’ll start upgrading components.

So if you’ve followed the aforementioned post, here’s a more complete set of things I’ve set up to make sure everything is working well together – including things I’m working on writing about 🙂.

Continue reading

How I Set Up My 2021 MacBook Pro

TL;DR: Here’s how I set up my 2021 MacBook Pro along with links to all the software and the method by which I install them (either via the Mac App Store, Homebrew, or Direct Downloads).


The last time I wrote anything about setting up a new machine was in 2017 and it was specifically for a MacBook Pro and WordPress development. Though I shifted much of my work to a Mac Mini in 2018, I’m now using a 2021 16″ MacBook Pro as my primary machine. And though I still work in software development and primarily work in the WordPress economy for a living:

  • I use a handful of different tools,
  • I use a handful of the same tools,
  • I have different tools for productivity as well as for personal use.

And how I set all of this up has changed, too.

Since it’s been about four years since I’ve written anything like this, now’s a good time to document my current set up both for reference and to share with the rest of you who find this kind of stuff interesting.

Continue reading

Introducing Digital Minimalism in 2022

I’m not, nor rarely have been, much of a procrastinator. If there’s something that needs to be done, I try to take care of it in a timely fashion. Sometimes it’s easier than others, but on the whole I dislike putting things off.

To that end, I’ve used the methodology of Getting Things Done for years with the help of a couple of utilities, like Things, all of which are beyond the scope of this article.

You can read about the workflow in the article linked above. The purpose of mentioning it to show that even when I lean towards procrastination, I have a plan for how to tackle something.

To that point, there’s been book of which I’ve been aware for roughly three years that I’ve deliberate put off reading. Perhaps I’ve even avoided reading it for reasons that I’ll soon explain.

And that’s Digital Minimalism by Cal Newport, a computer science professor at Georgetown University.

Continue reading

Fix WordPress, PHP, MariaDB, and Homebrew

TL;DR: If you find yourself setting up a new environment and you run into problems running WordPress, MariaDB, and PHP there are a few things to remember. Here’s what and here’s how to fix it.


I’m working on a longer post about how I set up my latest development environment but, in the mean time, hit a wall when working with the following requirements:

We recommend servers running version 7.4 or greater of PHP and MySQL version 5.7 OR MariaDB version 10.2 or greater.

Note that I use Homebrew to manage all of my packages and use Laravel Valet, WordPress, MariaDB, and PHP along with wp-cli. I’ll more on this in an upcoming post.

I’ve been talking with a few people on Twitter about it and it turned into a fun discussion.

Anyway, if you’ve followed any of this – or even if not and you’re experiencing this – then here’s a resolution for you.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑