

In this directory, we need to update the file /opt/homebrew/etc/httpd /nf and apply the following changes:

The path to the configuration of the Homebrew instance is /opt/homebrew/etc/httpd /. Note that you now have basically two different instances of Apache installed on your system: The out-of-the-box web server and the web server installed by Homebrew.

We will do this in the next section when we edit the Apache configuration. The installation routine will tell you to edit your nf to use PHPMyAdmin.
#Wordpress macos install#
Again, the installation is easy using Homebrew: brew install phpmyadmin The tool PHPMyAdmin is a well-known web-based user interface for MySQL database administration programmed in PHP. That is why we will just use the latest version and stick with the first installation command. For example, if you want to install PHP 7.1 use: brew install that you can have several PHP versions installed but activate only one version at a time. You can optionally install several and earlier versions of PHP with Homebrew. The installation is fairly easy using the command: brew install php Likewise Apache, there is a system default PHP installed, but we will also use the Homebrew PHP installation to be more flexible with the used PHP version.
#Wordpress macos how to#
See this Guide on how to install MySQL using Homebrew. To install web applications like WordPress and to make use of PHPMyAdmin, we need to first install MySQL. Afterwards, we will dig into the Apache configuration and how to add virtual hosts. Sudo launchctl unload -w /System/Library/LaunchDaemons/īefore we configure the new Apache server, we first install PHP and PHPMyAdmin. To deactivate the default Apache that is shipped with the operating system remove it from the system autostart: sudo apachectl stop So I rather recommend to deactivate the out-of-the-box web server and instead install your own Apache server through Homebrew with the command: brew install httpd However, it seems that the shipped Apache is not compatible with recent installations of Homebrew PHP since macOS Mojave. In a previous version of this article I advised to use the out-of-the-box web server that is shipped with macOS. In fact, older Macs were shipped with a web server. Running an Apache web server on a Mac is very easy. This article explains how to run Apache Webserver with PHP, WordPress and PHPMyAdmin setup on macOS. For a local web design and development environment, running Apache with PHP is key.
