Home > Article > Backend Development > How to check the installation directory of php under linux?
How to view the PHP installation directory under Linux:
1. First, connect to the corresponding Linux host, enter the Linux command line state, and wait for the shell command to be entered.
#2. Enter the shell command on the linux command line: find / -name *php*.
3. Press the "Enter" key on the keyboard to run the shell command. At this time, you will see that the php installation directory is in /usr/local/lib/php.
Recommended tutorial: "php tutorial"
The above is the detailed content of How to check the installation directory of php under linux?. For more information, please follow other related articles on the PHP Chinese website!