Can't find the command line php

I tried /usr/bin/php and /usr/bin/php5 but neither is right. Tried 'whereis php' which returns nothing and 'whereis php5' which returns:

php5: /etc/php5 /usr/lib/php5 /usr/include/php5 /usr/share/php5

These are all directories. I still have no idea where the command line php is located. :(

3 Replies

Have you definitely installed the package?

sudo apt-get install php5-cli

Test it out by typing "php -h", the help commands should pop up! :)

@Michael-Martin:

Have you definitely installed the package?

sudo apt-get install php5-cli

Test it out by typing "php -h", the help commands should pop up! :)

Thanks a lot! Seems I never installed the CLI. :)

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct