
- #OLDER VERSIONS OF MAMP FOR MAC INSTALL#
- #OLDER VERSIONS OF MAMP FOR MAC UPGRADE#
- #OLDER VERSIONS OF MAMP FOR MAC PRO#
- #OLDER VERSIONS OF MAMP FOR MAC CODE#
However, this was quicker and simpler for me to accomplish, probably because of the great instructions wizard included on, and this solution got me back in business with PHP 7.3.When I navigate to to my hd and select Library (trying to go from there to Webserver, where I normally would put the site) it’s not accessible by MAMP, only USERS dir is accessible (readable).
#OLDER VERSIONS OF MAMP FOR MAC PRO#
It still might be better to build a whole new PHP, with a more up-to-date Xdebug, to replace the outdated PHP 7.3.9 that is currently included with MAMP Pro 5.7. The MAMP php.ini will include the Xdebug module ( xdebug.so) when you enable Xdebug in the MAMP Pro GUI. This is because we are replacing the older version of Xdebug with our newly compiled one.
#OLDER VERSIONS OF MAMP FOR MAC CODE#
It should be something like:Ĭp modules/xdebug.so /Applications/MAMP/bin/php/php7.3.9/lib/php/extensions/no-debug-non-zts-20180731 (make sure you are still inside the Xdebug source code directory)

#OLDER VERSIONS OF MAMP FOR MAC INSTALL#
I use a Homebrew installation of PHP CLI instead of MAMP and simply following the standard Xdebug install or compile instructions would lead the an Xdebug module that was configured the the CLI PHP and not MAMP's PHP. The Xdebug module does need to have knowledge of the PHP that you are going to install it into, so for that reason you can't simply link the PHP-FPM service to another Xdebug installed somewhere else for another PHP.
#OLDER VERSIONS OF MAMP FOR MAC UPGRADE#
Modules can be compiled independently of the PHP code and I was able to easily upgrade the Xdebug that is included as part of MAMP. Luckily, Xdebug is a module and not part of the actual PHP build.

More information on this Xdebug 2.9.0 bug is at. This particular version of Xdebug has a bug that will cause the PHPStorm debugger to trigger at the declaration of a function that contains a breakpoint rather than at the actual breakpoint. There are probably a lot of reasons why I should be using a more current version of PHP (7.3.19), but this old PHP version also means that MAMP has bundled a bugged version of Xdebug (2.9.0). Unfortunately, the most recent version of PHP 7.3 that has been included in MAMP Pro 5.7 is PHP 7.3.9.

MAMP doesn't use the OS' PHP, and I'm mostly okay with this. Each PHP-FPM service is actually installed with the app's package. Where MAMP Pro fails me is that I am reliant on the PHP versions they have made a decision to build into the the app. I do all my web development work on a Mac and I like the simplicity of having one MySQL server, one Apache (or Nginx) server, a centralized GUI tool for modifying /etc/hosts, and I can switch between any of the supported PHP versions by linking a virtual host to a different PHP-FPM service.
