Back to Blog
Macos homebrew php7 redis6/23/2023 ![]() htaccess just like we'd do on most live hosts. It also allows us to swap PHP versions using. This is the most well performing, stable and recommended way to run PHP. PHP will be working through PHP-FPM (FastCGI Process Manager). We are going to use a self-signed SSL certificate, similar to what I described in my post on forging SSL certificates yourself, adapted for the Mac. The Apache server will be running as our user. Our sites will be served from the Sites folder inside the user's home directory. We are going to install a local server with Apache, MySQL 5.7 and three versions of PHP (5.6, 7.2 and 7.3). So here you are: a massive blog post detailing everything I've done to set up a stable, reliable local server with all the bells and whistles on two different Macs. ![]() No problem, I am used to fixing broken stuff and writing step-by-step instructions so other people don't have to go through the same pain. So I tried building my own local server following someone else's tutorials written for macOS High Sierra but found out that Homebrew was now subtly broken in macOS Mojave. It is also using outdated versions, it's too expensive for the glorified interface to free (and free of charge!) software that it is and its support was utterly useless. It was slow, idiosyncratic and randomly crashing in ways that required me to log out or, worse, restart my Mac. Before proceeding, I'd like to explain why I got into all this trouble instead of using MAMP. htaccess like you would on most live hosts. Bonus points: you can change the PHP version using the site's. ![]() So here you go, a tutorial on running a local Apache, MySQL, multiple PHP versions server on macOS Mojave using HomeBrew, updated for 2019. Other blog posts I read seem to be glossing over some details. Meanwhile my standard fallback local server, MAMP, has become too unstable and lagging behind the times to be practical. Many things have changed ever since and that tutorial became impossible to follow. htaccess like you would on most live hosts.Ī few years ago I had written a blog post on setting up an Apache, MySQL and PHP web server on macOS. A tutorial on running a local Apache, MySQL, multiple PHP versions server on macOS Mojave using HomeBrew, updated for 2019. ![]()
0 Comments
Read More
Leave a Reply. |