PHP 5.5.24
with xDebug 2.2.3
and our php.ini
is located at /usr/bin/php
./usr/local/php5-5.6.11-20150710-223902/bin
and makes a symlink of this folder called php5. In this way, when you’ll update PHP, Apache will automatically load the new PHP version (see more about this in a moment). Really smart!which php
you’ll get the same result as before. This is because we have to tell our Mac OsX to load PHP from the new location..bash_profile
in our user directory:a
to enter the edit mode)..bash_file
write the line export PATH=/usr/local/php5/bin:$PATH
, then press Esc
and type SHIFT + Z
for two times (a shortcut to save and close the file)..bash_profile
file and restart Apache:php.ini
located at /usr/local/php5/lib/
and set it the right way.php.ini
, maybe you want to configure your Mac Osx built-in Apache or want to install MySQL in your Mac (as it is not shipped by default).