Head to the folder where you’d like to setup your project, I use username/git. Now we can install CakePHP into our project, following Mv composer.phar /usr/local/bin/composer Install CakePHP, for real I find I have to do that a lot, I suspect I’m missing something on my Mac.Īfter you run the above, CakePHP points out there is one more command to run: When I ran it, I had to add sudo to the start of each line.
Hit up this page and you’ll see the following, do it.
Installation from here is rather easy, following But first, ComposerĬakePHP uses composer for installation, so we’ll need to install composer first. Then then type the following to confirm the path: This will refresh your terminal windows to use this new profile. This will set the php command to be set to MAMP’s PHP instead of the PHP that came with Mac. bash_profile and add the following line:Įxport PATH =/Applications/MAMP/bin/php/php7.3.7/bin:$PATH In Terminal, go to your home directory, then edit. I came across this lovely blog post which helped. It may be possible to install it all, I trust it is, but this was much easier and faster. The PHP that comes with Mac doesn’t have the necessary extensions installed. If you tried to install CakePHP right now, you’d get a headache, which is what I cried over for a while.
#Mamp to run sql on mac mac osx
Continuing in the trend of “not knowing Mac well enough”, it appears Mac OSX Mojave comes with PHP, but a slightly different configured version.