


In Terminal, type in which php again and look for the updated string.In Terminal, run source ~/.bash_profile.Type i and then paste the following at the top of the file:.Within the Terminal, run vim ~/.bash_profile.bash_profile and add the MAMP version of PHP to the PATH variable. Now, I just need to swap this over to the PHP that is installed with MAMP, which is located at /Applications/XAMPP/bin/php This should output the path to the default PHP install which comes preinstalled by Mac OS X, by default it has to be (Assuming you’ve not changed it before): /usr/bin/php To do that, Within the terminal, Fire this command: which php That it, to test it out, restart your Mac, login and try to access from your browser….First, Let’s find out what version of PHP we’re running (To find out if it’s the default version). Last of all, now we just need to set a few permissions etc. sudo nano istĪgain, we need to populate the file with the following contents:. You can also start specific xampp apps for example, starting apache only by using /Applications/XAMPP/xamppfiles/xampp startapache instead. If you installed XAMPP elsewhere you will need to modify the path above. It comes as a Mac OS X Installer package which contains all the necessary files and requires no dependencies. The distribution includes an Apache 2 web server, integrated with the latest builds of MySQL, PHP (both 4 and 5) and Perl. Our cloud-based software helps teams align fast, set goals. Bring out the best in your remote team with Work OS. Name Modified Size Info Downloads / Week Parent folder xampp-osx-7.4.4-2-vm.dmg:. Applications/XAMPP/xamppfiles/xampp start XAMPP for Mac OS X is the simplest, most practical and most complete webserver solution for Mac OS X. XAMPP Files An easy to install Apache distribution containing MySQL, PHP, and Perl. When Nano opens up, you should populate the file with the following:- #!/bin/sh

I hope this very quick tutorial is of help to some other people too 🙂įirst of all you need to open up the terminal on your MacOSX machine (I’m current using MacOSX 10.7 ‘Lion’)Īt the terminal enter the following comamnds:- cd /Library/StartupItems I thought I’d post up my solution to auto-starting XAMPP when I turn on my iMac Although I normally develop on Linux and Windows… I have a nice shiney iMac downstairs of which I’m starting to use more and more for development.
