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)


How to locate the php.ini file UBUNTU

How to locate the php.ini file (xampp) Ubuntu

If you have multiple php-versions (xampp etc) running, I find the easiest is to use:



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)

How to completely remove PHP on ubuntu ?

 How to completely remove PHP?

This should completely remove any package with a name that starts with php and anything related to it.

sudo apt-get purge 'php*'

 

source https://askubuntu.com/questions/59886/how-to-completely-remove-php