Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find PHP executable in Xampp - Ubuntu

Tags:

php

ubuntu

xampp

After installing Xampp on Ubuntu, where can I find the PHP executable to put it in the /usr/bin folder so that I can use the PHP alias globally?

enter image description here

like image 213
Ronald Araújo Avatar asked Dec 08 '25 00:12

Ronald Araújo


2 Answers

A simple:

whereis php

Solved the problem.

Note: The response author has deleted the comment. Thank you anyway.

like image 198
Ronald Araújo Avatar answered Dec 10 '25 12:12

Ronald Araújo


the php executable file is located

opt/lampp/bin/php

you can also find it with this command

$ whereis php
like image 30
Faisal Halim Avatar answered Dec 10 '25 13:12

Faisal Halim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!