![]() ![]() To get this all set up, I need to install some software on the Mac. So for now I’m documenting all the manual processes. The actual setup process is a bit more involved than just installing and configuring the web server stack on an Ubuntu machine, but I want to try and turn this into something that installs everything automatically. Then I could configure a /etc/hosts record on the Mac for the URL in question, and point to my virtual instance. Whenever I needed to set up screenshots of a test site but representing a production URL, without actually using that production URL, I’d just launch a new Multipass instance with Apache, PHP, MySQL, and a custom Apache virtual host file. ![]() I actually used Multipass during my time at Delicious Brains. It’s about the simplest way I’ve encountered to launch and run virtual Ubuntu instances, with way less complexity and resource usage compared to something like Docker or VirtualBox. Multipass is a virtualization tool built by the folks at Canonical. I don’t want something reliant on Docker or VirtualBoxįortunately, this is all possible using Multipass.I want to use Mailhog to catch all outgoing emails.I want to access the MySQL database in the browser using PHPMyadmin.I want to use Mkcert for locally trusted SSL certificates.I need to be able to provision a new local site as quickly as I could on my Ubuntu Workstation.I need to be able to access my source code on my local hard drive.I want to be able to run Ubuntu, Apache, PHP, and MySQL.What I would really like is something that fully replicates a LAMP server, but on a Mac. You can’t get closer to a real-world web server than developing directly on a Linux distribution, real or virtual. If I’m honest with myself though, I’ve been using a LAMP stack on Ubuntu for going on 20 years now, and I just prefer it. I’ve also found that the local site certificates don’t fully work with Firefox, and the root certificate needs to be installed manually, which is a bit of a pain when that certificate expires. The best alternative I’ve found on the Mac is Laravel Valet, but it’s not without some minor niggles, mostly the fact that the web server is actually a PHP file. While I don’t totally hate it, I still prefer a LAMP or LEMP stack as my default local web development environment. I’ve been using an Apple MacBook since June 2021. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |