Définir le chemin PHP dans Ubuntu

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