8/31/2023 0 Comments Wordpress macos![]() First, we need to change the user/group that PHP runs processes as. Once those are installed, let's set up PHP first. I use homebrew to install everything: brew install nginx mariadb If you're visiting from the future and there's a newer PHP version that works with WordPress, use that instead. Throughout this tutorial, I'll be using my username ( emerson) and path to my sites ( /Users/emerson/repos/sites/). I don't have a way to test that, although if you want to donate one to me. M1 Macs might behave or be configured differently.This tutorial is written and tested on Big Sur I'm reasonably confident that it will work on earlier versions as well.127.0.0.1 will always exist and be usable, so I use it. localhost might have IPv6, it might not, some programs might think it does when it doesn't. I use 127.0.0.1 rather than localhost because it's guaranteed to be there.It might also be another blog, not sure yet. ![]() SSL is left as an exercise for you, dear reader.I'm not going to walk you through how to download and install WordPress there's plenty of tutorials on that already.But we're doing this on a personal laptop, not a production server, so I prioritize convenience over security. Some parts of this setup are bad practice from a security standpoint.I've tried Docker, Local, and MAMP before, and the limitations and workarounds I have to use frustrate me, and I end up going back to this setup because I have total flexibility and control over how it works. As it turns out, once I knew how to use low-level programs, I realized that it's actually easier to configure and maintain my setup the way I want to do it, rather than the way other people make me use their tools. Secondly, I was a Linux sysadmin for about 3 years, running WordPress hosting. "But Em," I hear you say, "Why do all this low-level stuff when there are tools like Docker, LocalWP, MAMP, etc., that are way easier and more intuitive?" Today I'll show you how I set it up on a Mac. ![]() On both my Windows machine and MacBook, I use nginx, PHP, and MariaDB to serve my WordPress sites. However, I will occasionally use my Mac when I'm testing sites on Safari or an iOS emulator. Normally I use Windows because my Windows machine is more powerful and can drive two monitors, whereas my MacBook Air is the 13-inch 2017 model (that I bought last year because it's the last model with MagSafe power and a proper keyboard). I switch between Windows and macOS for developing WordPress sites.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |