Help me upgrade PHP on my MacOS X so I can run xDebug!
December 4, 2013 7:54 AM Subscribe
I want to upgrade the native version of PHP on my Macbook running MacOS X and I am not having much luck. Snowflakes inside...
posted by dukes909 to Computers & Internet (19 answers total) 1 user marked this as a favorite
I am running through the Murach book "PHP/MySQL". In chapter 6 he goes over how to debug a PHP application using Netbeans and xDebug. First you have to get Netbeans and xdebug working on your computer - in my case a Macbook running MacOS 10.8.5.
I tried the instructions listed in the appendix of the book (download Netbeans, then download the xDebug binary) first to no avail. Netbeans works great but xDebug fails to load and I can't work any of the exercises thereafter until I do.
I should mention I started with XAMPP which worked fine but couldn't get xDebug to work with it. So I tried MAMP, same thing. Then I uninstalled both of these and thought I would go the brute force method and try upgrading native PHP and installing mySQL without MAMP or XAMPP, by following these 2 guides:
Works great except instead of the latest version of PHP, I still get the old one reported when I do a "php -v". Also, absolutely no php pages work now under apache.
Is there a better way to do this? Do I even need to fool with xDebug to learn PHP/mySQL?! I've spent waay too much time on this now as it is.