This article brings you relevant knowledge about PHP. It mainly introduces how to find the location of the PHP installation package in Linux. There are code examples. Friends who are interested can take a look below. I hope it will be helpful to you. Everyone is helpful.
##php -version, if it can be executed, it means that the execution path of PHP must be under PATH. If there is no response, Let's
find / -name php to find.
echo $PATHMy display is like this
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
<div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:php;toolbar:false">[root@localhost swoole]# find /usr/local/bin -name php[root@localhost swoole]#
[root@localhost swoole]# find /usr/bin -name php/usr/bin/php</pre><div class="contentsignin">Copy after login</div></div> found that under /usr/bin/php
##Finally found the directory
/www/server/php/72##Recommended study: "
"
The above is the detailed content of Detailed explanation of how to find the location of PHP installation package in Linux. For more information, please follow other related articles on the PHP Chinese website!