How to locate php.ini file to /opt/lampp Laravel UBUNTU

Apparently i a little confuse when i use laravel,

because in my machine has  multiple php version running

i need my  laravel use this /opt/lampp/ for base machine 


first you can download and install xampp-linux-5.5.35-0-installer.run or any version xampp-linux-xxx.xxx-installer.run


sudo chmod +x xampp*

./xampp*

and it will install on /opt/lampp


and then add path to /opt/lampp

How to locate php.ini file to /opt/lampp Laravel

 

sudo xed /etc/environment

or

sudo gedit /etc/environment

 

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/lampp/bin"

restart your computer

done!!!

php --ini

Configuration File (php.ini) Path: /opt/lampp/etc
Loaded Configuration File:         /opt/lampp/etc/php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)