Run php , mysql commands from command-line after installing XAMPP (Linux)
Once you have installed XAMPP, You have your system ready necessary development programs like PHP, MySQL etc. But you cannot yet run those commands from you command line, Because your terminal does not recognise those yet.
You can either install the programs independently as a package or you can set path of XAMPP binaries into linux environment variable so that your terminal will be able to execute those binaries. Here is how you can do that.
you will find a PATH variable in this file,
You can append the path of XAMPP binaries (i.e. /opt/lampp/bin) in this variable.
After doing this, do a
Run a test command
, to see if the changes worked !!