I need to install and configure MySQL and PHP on my Mac. I used the manual installation instructions on PHP and MySQL Novice to Ninja a couple of years ago and I’d like to know if I can still refer to that in Mac Yosemite. Or if there’s another more up to date reference that you could point to.
I haven’t read it through, but that’s what I’d do - just Google for setting up LAMP in OS X Yosemite, and roll with it.
You can also get a prebuilt package similar to the way you can do WAMP/XAMPP on Windows. XAMPP has a Mac version or a port. MAMP is also a thing. They provide a slightly more isolated dev environment, if you care about that sort of thing (in that you aren’t messing about with your built in PHP or whatever else).
It’s probably worth exploring virtualizing if you haven’t already. A few months ago, SitePoint published an article about how to get started using Vagrant to manage a virtual environment:
Normally I would agree with using vagrant but for someone who probably barely knows the difference between a conditional and loop it is a stretch. A Big stretch because using vagrant even with puphpet *does come with a host of issues if you don’t know some basic to intermediate dev operations things. The Mamp direction is probably the least painful method to get set-up and start working on the basics.
An important note though - Mampp does not integrate it’s install of MySQL and PHP into the Mac it’s running on, so any changes to PHP made in future upgrades by Apple won’t disrupt it.
Vagrant’s ease or lack thereof is entirely dependent on how used to command line the user is.
@assembly21 Since you’re comfortable enough with the terminal to at least try to upgrade the PHP instance Yosemite ships with, turn it’s Apache on and install MySQL I would recommend downloading VirtualBox (it’s free) then installing Vagrant. However, if you’ve felt way in over your head during this first attempt I’d recommend just installing MAMPP and using it until you gain some experience with the language and the command line.
Don’t pull your hair out trying to install MySQL and PHP straight onto the Mac. It really isn’t worth the trouble.
The simplest way to use vagrant is with puphpet.com. Without puphpet.com vagrant would be much less useful. You can essentially provision a box with a GUI than just run vagrant up and you’re up and running. it is so wonderful.