

Note: ignore the first “export PATH” in my example image here. We don’t want to change the filename, so just press enter and then you will be sent back to the terminal like normal. You will first type “Y” and then it will ask you if you want to change the filename. Simple enough, now you will need to indicate that you want to overwrite the existing file. So as you can see, we should click (control + X). So to save, we actually just need to Exit. This is the “control” key on your mac (usually the bottom far-left key on desktops or the bottom second to the most left on laptops). You will see that many of them are prefixed with a ^ character. The bottom of your document will have all of your shortcuts and menus. Instead you will use some shortcuts to save and quit. Because we are using a text editor built into your terminal, you have no access to your mouse to save the file. Now that it’s added it is time to save this document you have been editing. Type the following lines into your terminal to edit this configuration file. This is why we need to use terminal, because it still allows us to edit hidden files. The dot at the beginning means that it is hidden. There is a hidden configuration file which will tell your computer this information. We need to tell the system where you installed the new PHP. We are using the command line, but don’t panic. So we need to do a couple last (still easy) things in order to actually take advantage of what we just installed.

This is also completely normal.Ĭongratulations you have a brand new version of PHP for your development and you have a ton of useful extension you will want to have, but most importantly, you now have mcrypt installed! Final TouchesĪlthough you have the new PHP and Mcrypt installed, it doesn’t mean your system knows that it exists. You might get a warning that says it could not find a domain, so it used. When it is complete, you will see the last few lines indicating that Apache was restarted.
#Install mcrypt for mac 10.8 upgrade
This is a significant upgrade from the 5.3 or 5.4 version that Apple installed with your operating system. I should also add that we are installing the current stable version of PHP, which is 5.6. Don’t worry though, it is not overwriting your system PHP which Apple installed. If you want to know whats happening, this script is completely re-installing PHP onto your system into your local user directory. There are no dots or asterisks to indicate you have typed anything. Please keep in mind you won’t see any feedback that you are typing anything.
#Install mcrypt for mac 10.8 install
This is where you type your user or admin password (if you are a developer and own this computer, then this is the same password that you use to verify any install or to log in). One Line InstallationĬopy and Paste the following line into your terminal and then click “enter”. (This is found in Applications/Utilities/Terminal)Īlright, with that down, pretty much anyone running on a modern mac qualifies. (also known as Snow Leopard/Lion/Mountain Lion/Mavericks/Yosemite) (If you don’t know, then run which php in your terminal) PHP 5.6/5.5/5.4/5.3 installed on your computer already.But for the most part, if you are using a Mac built in the last 3 years then this should work just fine. Take a quick mental inventory to make sure your computer is compatible. Lucky for you, I have discovered the easiest way to install mcrypt php so you can get onto what you really want to do, develop awesome web applications. To be honest, in 2014 I don’t know why it is still so complicated to install such a trivial PHP extension. I have wasted hours searching the web for help on this and there is little help to be given. This is the worst error I have ever gotten.
