Multizone | All our technotes
If we've published it, you can find it here.

How to Add MySQL or MariaDB to Homebrew Apache + PHP (macOS)
This guide shows how to install and configure MySQL or MariaDB with your Homebrew Apache and PHP setup on macOS. It covers installation, starting the service, and basic connection tests.
Prerequisites
- macOS with Homebrew installed
- Homebrew
httpd
and PHP already working - Terminal access with admin privileges
Steps
- Install MySQL or MariaDB:
You can choose one:brew install mysql # or brew install mariadb
- Start the database service:
Use Homebrew services to keep it running in the background:brew services start mysql # or brew services start mariadb
- Secure the installation:
Run the included script to set a root password and remove insecure defaults:mysql_secure_installation
- Test the database connection:
Log into the server:
Enter your root password to confirm it works.mysql -u root -p
- Verify PHP can connect:
Ensure you have the MySQL extension for PHP (usually included in Homebrew PHP builds). Create a filedbtest.php
in your Apache document root:
Visit<?php $mysqli = new mysqli("localhost", "root", "yourpassword"); if ($mysqli->connect_error) { die("Connection failed: " . $mysqli->connect_error); } echo "Connected successfully to MySQL/MariaDB!"; ?>
http://localhost:8080/dbtest.php
(or your configured port).
Verification
If configured correctly, you’ll see a success message in your browser. At this point, your Homebrew Apache stack supports PHP and MySQL/MariaDB, ready for Joomla or other PHP applications.
See Running Homebrew Apache with Let's Encrypt SSL on macOS Tahoe and Running Homebrew PHP on Apache on macOS Tahoe.
Homebrew Logo: Vítor Galvão (creator); MikeMcQuaid, Synoli (committers), BSD, via Wikimedia Commons
- Details

This guide shows how to configure Apache installed via Homebrew on macOS to serve PHP files. It covers prerequisites, configuration changes, and simple tests to confirm PHP is working correctly.
Prerequisites
- macOS with Homebrew installed
- Homebrew
httpd
service running - PHP installed via Homebrew (
brew install php
) - Basic familiarity editing configuration files
Steps
- Locate your Apache configuration file:
The main config is usually at/opt/homebrew/etc/httpd/httpd.conf
. - Include PHP settings:
Add the following line near the bottom ofhttpd.conf
:# PHP settings Include /opt/homebrew/etc/httpd/extra/httpd-php.conf
- Create or edit
httpd-php.conf
:
Add these lines:# PHP LoadModule php_module /opt/homebrew/lib/httpd/modules/libphp.so <IfModule php_module> <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch> <IfModule dir_module> DirectoryIndex index.html index.php </IfModule> </IfModule>
- Restart Apache:
Run:brew services restart httpd
- Test PHP:
In your Apache document root (e.g./opt/homebrew/var/www
), create a file calledinfo.php
:
Then visit<?php phpinfo(); ?>
http://localhost:8080/info.php
(or your configured port).
Verification
If PHP is configured correctly, you’ll see the PHP information page showing version details, loaded modules, and configuration paths.
See Running Homebrew Apache with Let's Encrypt SSL on macOS Tahoe and Running Homebrew MySQL or MariaDB on macOS Tahoe.
Homebrew Logo: Vítor Galvão (creator); MikeMcQuaid, Synoli (committers), BSD, via Wikimedia Commons
- Details

This HOWTO documents the steps to run Apache (httpd
) installed via Homebrew on macOS, serving content over HTTPS with Let’s Encrypt SSL certificates. The configuration avoids permission problems and port conflicts by using a neutral certificate directory and high-numbered ports.
Prerequisites
- macOS with Homebrew installed.
- Apache (
httpd
) installed with Homebrew:
- A valid Let’s Encrypt certificate for your host (obtained via
certbot
).
TL:DR – This is unnecessarily complex to debug really mostly due to Apple's decisions over the years about security and local web servers combined with the need to verify your connection to the computer over the Internet but once you crack it, you'll have a nice local web development environment on macOS that 'just works'.
- Details
Read more: Running Homebrew Apache with Let's Encrypt SSL on macOS Tahoe

Android 16 brings a range of exciting updates and enhancements to your Android device aimed at boosting mobile productivity and improving your security. From improved security features to personalized options for group chats and smart home management, Android 16 is designed to enhance your mobile productivity and overall user experience. Let's examine the key improvements that Android 16 offers for Android phone users, with a focus on Pixel devices.
TL:DR – Android 16 introduces new security features, personalized group chat options, an enhanced image editor, and more to elevate your mobile experience
- Details
Read more: Key security and personalisation improvements in Android 16

The vintage computer market has experienced a resurgence in recent years, with collectors and enthusiasts seeking out rare and iconic pieces of computing history. Among the most coveted items in this market are vintage Sun workstations and Apple Mac computers, both of which hold significant historical and technological value. Having had many of these machines as daily use computers I thought it might be useful to outline why they were so important - in fact evolution can be traced from these computers to my MacBook and Apple Studio computers.
TL:DR – The Sun Workstation was a remarkable piece of engineering of its time. Sun Workstations were the forerunners of modern IP based computing where computers are routinedly connected to the Internet. The engineering level is stellar. The designs still fresh.
- Details
These deals cover a wide range of categories, from smart home devices to advanced electronics.
To take advantage of these limited-time offers, users should act fast and keep an eye on Amazon's Deal of the Day section. Additionally, Amazon Prime members can enjoy exclusive early access to certain deals and free shipping on eligible items. Watch out though. The prices change often, and don't buy something renewed unless you mean to do so!
TL:DR – Here are some of the top deals from Amazon UK for things we like and use.
- Details
Read more: Amazon UK clearing out limited stock of must have technology

Mac users are constantly seeking ways to optimise their experience and maximise productivity. With the release of the new , Apple has introduced several key features that can significantly enhance user workflows and streamline daily tasks. By examining into the technical capabilities of the latest Mac models and understanding how to leverage specific functionalities, you can unlock the full potential of your computer.
TL:DR – Enhance your MacBook Air (M4, 2025) experience with these six expert tips to save time and improve workflow efficiency.
- Details
Read more: Six Things to Learn about the new MacBook Air (M4, 2025)
- Roku 3840EU Streaming Stick
- Universal control with two Macs is magic to me
- Mac Hacks: Hidden Features You’re Not Using (But Should Be)
- Creating AWS Network Diagrams with Gemini CLI
- Brilliant Apple Store service
- Beyond the glimmer of Liquid Glass is a sparkle concealing a revolution
- Improving product management productivity with AI
- Does the brittle nature of Microsoft Lists stifle adoption
- Refactoring a Node.js app with Gemini CLI
- Is it pair programming when you use Gemini CLI to help you write software?
- Android 16 what's new and whats missing
- Windows Vista was unfairly maligned