Home > Article > Backend Development > Which folder is the PHP installation directory in Linux?
php is installed in "/usr/local/lib", check method: 1. Connect to the corresponding linux host and enter the linux command line state; 2. Execute the shell command "find / -name *php*", You can obtain the PHP installation directory "/usr/local/lib/php".
The operating environment of this tutorial: centos7 system, PHP7.1 version, thinkpad t480 computer
1. First, connect to the corresponding linux host and enter Go to 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*. Press the "Enter" key on the keyboard to run the shell command. At this time, you will see that the PHP installation directory is /usr/local/lib/php.
Recommended: "2021 PHP Interview Questions Summary (Collection)》《php video tutorial》
The above is the detailed content of Which folder is the PHP installation directory in Linux?. For more information, please follow other related articles on the PHP Chinese website!