Create a file called .bash_profile
on your home directory (if you don’t have this file already), and add this to the file:
export PATH=/Applications/mamp/bin/php5.3/bin:$PATH
Then quit and relaunch Terminal.app
More Related Contents:
- How to override the path of PHP to use the MAMP path?
- PHP files are downloaded by browser instead of processed by local dev server (MAMP)
- CakePHP Database connection “Mysql” is missing, or could not be created
- Laravel 5 – Remove Public from URL
- How to install MySQLi on MacOS
- osx 10.10 Curl POST to HTTPS url gives SSLRead() error
- Php-intl installation on XAMPP
- How to use the php that brew installed?
- Where does MAMP keep its php.ini?
- How to use MAMP’s version of PHP instead of the default on OSX
- Stop caching for PHP 5.5.3 in MAMP
- PHP Warning: mysqli_connect(): (HY000/2002): Connection refused
- How can I easily switch between PHP versions on Mac OSX?
- Having problems while try to install OAUTH with PECL in MAMP on mac OS lion
- install ext-zip for Mac
- Enabling PostgreSQL support in PHP on Mac OS X
- mysqli_real_connect(): (HY000/2002): No such file or directory
- dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib error running php after installing node with brew on Mac
- Updating php version on mac
- Mysql password expired. Can’t connect
- Installing mcrypt extension for PHP on OSX Mountain Lion
- $PATH environment variable for apache2 on mac
- Installing pecl and pear on OS X 10.11 El Capitan, macOS 10.12 Sierra, macOS 10.13 High Sierra (< 10.13.3)
- Php date() Date and time is stuck [closed]
- What is the best IDE for PHP? [closed]
- PDO error: ” SQLSTATE[HY000]: General error ” When updating database
- Regex to detect invalid UTF-8 string
- How to pass a Javascript Array via JQuery Post so that all its contents are accessible via the PHP $_POST array?
- Displaying a Base64 images from a database via PHP
- Fatal error: Class ‘MongoDB\Driver\Manager’ not found