D
D
dev1232021-04-08 12:40:20
linux
dev123, 2021-04-08 12:40:20

Why isn't php5.6 (it's installed on the system) in /usr/bin?

Ubuntu server has php7.0 and php5.6 installed. Cron runs scripts through php7.0 (these commands contain the /usr/bin/php entry, which leads to php7.0).
I need to run one script from command line via php5.6.
Tried writing /usr/bin/php5.6 script_name.php but writes command php5.6 not found.

And it's strange that php5.6 is installed, but /usr/bin has only php7.0 Screenshot
: 606ecee8d61d6366670314.jpeg

Can you tell me what could be the reason?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Karbivnichy, 2021-04-08
@hottabxp

Look for puff like this:whereis php

N
nokimaro, 2021-04-08
@nokimaro

find / -type f -name 'php5*'
the fact that you have configs in /etc/php/5.6/ does not mean that the binaries themselves have not been removed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question