3

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

1
  • look on this
    – jagad89
    Commented Jun 1, 2017 at 13:58

2 Answers 2

20

A simple:

whereis php

Solved the problem.

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

4
  • Wow dude! Thank you. Lack of attention of mine, because I had already visited this folder, but had not found anything. Thank you very much. Commented Jun 1, 2017 at 13:59
  • Cheers!! :D I deleted comment because i found someone already answered better for it.
    – jagad89
    Commented Jun 1, 2017 at 14:01
  • It's all right! Do you want to respond? So I can give the credits to you. :) Commented Jun 1, 2017 at 14:04
  • 1
    No that's fine. You can up vote the answer in link which i commented below question.
    – jagad89
    Commented Jun 1, 2017 at 14:06
6

the php executable file is located

opt/lampp/bin/php

you can also find it with this command

$ whereis php

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.