Open Terminal and run command 1. whereis php 2. Output will be something like "/opt/lampp/bin/php" This is your php location