How to keep PHP and MySQL of ampps as default in MacOSX?
5,324
Solution 1
if you meant how to set AMPPS php
and mysql
as default, then you must define this line in ~/.bash_profile
:
export PATH="/Applications/AMPPS/php/bin:/Applications/AMPPS/mysql/bin:$PATH"
This makes the OS search for binaries in this paths before the default ones.
Solution 2
You should find two options in AMPPS "Start AMPPS on Starup" and "Start Apache & MySQL on Application startup".
These options can be found exactly at: Right click on AMPPS Dock Icon -> Configuration -> AMPPS.
Solution 3
If you're on a newer version of AMPPS make sure you choose the proper folder path.
export PATH="/Applications/AMPPS/php-5.6/bin:/Applications/AMPPS/mysql/bin:$PATH"
instead of plain "php" add the version.
Related videos on Youtube
Author by
E.Smith
Updated on September 18, 2022Comments
-
E.Smith over 1 year
I'm using MacOS X 10.6.2. I want to use AMPPS http://www.ampps.com/ as my local development server so my question is how do I keep my AMPPS PHP & MySQL default?