I have installed xampp on my machine .. all running good but when i type php in terminal that suggest me to install from apt-get
So want to get rid off this and i am new to Ubuntu .. help will be appreciated thanks
I have installed xampp on my machine .. all running good but when i type php in terminal that suggest me to install from apt-get
So want to get rid off this and i am new to Ubuntu .. help will be appreciated thanks
This is simple just create a symlink. I just did this with a fresh install of Ubuntu 18.0.4 Bionic Beaver and XAMPP x64-7.4.4-0-installer. Just execute the following command in the terminal
sudo ln -s /opt/lampp/bin/php /usr/bin/php
Where you installed XAMPP? You remember the path? You need looking for PHP binary somewhere there.
If you don't remeber the path, maybe this will be help: sudo find / -name 'php'. When you will be have path, you need add this into PATH variable - How to add a directory to the PATH?