I am new to using Linux and I broke some php settings while tampering.
If I execute a php script containing: phpinfo();
it shows the php versions as 5.
You can try setting the path to the correct php version on the terminal command line:
set PATH="/usr/bin/php5.6/bin:$PATH"
Modify the path to match your own path to PHP 5.6 (ie. if it was installed first, it might be something like "/usr/bin/php").
The "$PATH" at the end appends the current path value, so don't forget to use it.