I have Xubuntu installation and XAMPP installed on my PC, and everything works great. However, lately I am experimenting a little bit with Laravel framework and a lot of tutorials and people just use PHP command in terminal, but for me to work I have to load a full path like:
/opt/lampp/bin/php
And the file in bin/php links to proper PHP version.
That works but I would like to speed up a process a bit and to use just php as everyone else use and it's much simpler than to use full path.
So my question is how to set a path so I can use just php in my terminal.
I have read a couple tutorials and there are suggests of setting a path in ~/.bashrc or to use export.
But none of them works for me.
Any suggestions?
ln: failed to create symbolic link '/usr/bin/php': File exists– Attila Naghi Feb 10 '18 at 18:41sudo rm /usr/bin/phpthenln -s /opt/lampp/bin/php /usr/bin/phpagain – Goba Mar 16 '18 at 10:01