Sometimes you need to test your projects against multiple versions of PHP.
If you’re using MAMP that’s fairly easy to do: head over to the MAMP Start Screen, select Preferences and see two versions to choose from.
Here I’m using MAMP 2.2 (even though 3.x has been released already) and I have PHP 5.2.17 and PHP 5.5.3.
When I switch to the other version MAMP restarts and I can refresh my browser to see my project running on the other PHP version.
That’s all good if I actually needed either version – but sadly 5.2.x is too old for me, and 5.5.x doesn’t quite work and is a bit too cutting edge. I need it to reflect my production environment.
So what is a boy to do?
Continue reading How to switch between several PHP versions in MAMP 2.x
If you have MAMP installed and working on your Mac, it’s easy to get started with ZEND Framework development. I’ll show you how in this article.
Download the framework from here:
Choose the full version without ZEND Server (not necessary as we’re using MAMP). Unpack the download and put it somewhere safe. I’m adding mine to my Documents directory. I’ll also rename my folder to something like “ZendFramework” without the version number.
To access it from anywhere on our machine we’ll create an alias named “zf”. zf is a shell script provided by the framework that we’ll need throughout our development journey with ZEND. Let’s to this in a Terminal session:
Replace the path with your own. Notice the call to /bin/zf.sh which is the “real” shell script. Our alias has just made this universal and accessible without having to mess with our shell path.
Verify that it’s working with this:
zf show version
Zend Framework Version: 1.12.3
Read the full article
This is not the same on a vanilla MySQL install where the root user is not secured by a password by default – however under MAMP it is.
So on a fresh MySQL install the credentials are
Under MAMP (and presumably MAMP Pro) they are
Now we know – thank you Aral 😉
In this new Podcast Season I will start things off by showing you how to run WordPress on your laptop. I will explain this on a Mac, but the process is very similar (if not identical) on a PC. All you need is an installer that gives you Apache, MySQL and PHP on your local machine.
Don’t worry if you don’t know what this means, I’ll explain it in the screencast. Here are links to these packages:
You’ll also need a copy of WordPress which you can download here.
If anything is unclear please let me know below. As always, enjoy!
Podcast: Download (142.0MB)