Install Apache Php Mysql Mac Catalina

In this guide, you’ll learn how to install a LAMP (Linux, Apache, MySQL, PHP) server on a Raspberry Pi.LAMP is a software bundle that is used for web development. The Raspberry Pi will have Raspbian OS installed and you’ll use phpMyAdmin to easily manage your database through a web interface. In this tutorial we will learn to install Apache, MySQL, PHP on macOS Catalina 10.15. About macOS Catalina. Apple released macOS Catalina 10.15 on 7th October 2019 and it includes Apache and PHP.

Install apache php mysql mac catalina update04 Oct 2019

Apple macOS 10.15 ships with both a recent version of Apache (2.4.x), as well as PHP (7.3.x), so you’ll just have to install MySQL and go through a few steps to get everything up and running.

Apache

First, you have to create a web root in your user account:

Then add a configuration for your user:

Catalina

Now we have to make sure that our user config above actually gets loaded:

If you want to use vhosts, you’ll also have to make sure that the vhosts config gets loaded:

After that, configure vhosts as necessary in /etc/apache2/extra/httpd-vhosts.conf (don’t forget to remove the examples in there).

It seems that mod_rewrite no longer gets loaded by default, so we’ll also add that to our config:

PHP

PHP doesn’t get loaded by default. So we’ll also add it to our config:

You should also configure a few settings in /etc/php.ini:

Install Apache Php Mysql Mac Catalina

To activate these settings you have to restart Apache:

If you also need PEAR/PECL, follow these instructions.

Install apache php mysql mac catalina update

MySQL

Install Apache Php Mysql Mac Catalina Free

MySQL is not shipped with macOS, so we’ll have to install that manually. Instead of going for an installer package, we’ll use Homebrew. Once Homebrew is installed, installing MySQL is as simple as:

If you want to start MySQL automatically, run:

Any comments? Ping me on Twitter. 👉🏻 Get my newsletter for occasional updates. ✌🏻

Install Apache Php Mysql Mac Catalina Update

Related Posts