Home >Backend Development >PHP Problem >Which folder is the PHP installation directory in Linux?

Which folder is the PHP installation directory in Linux?

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-04-19 10:05:254957browse

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.

Which folder is the PHP installation directory in Linux?

#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.

Which folder is the PHP installation directory in Linux?

Which folder is the PHP installation directory in Linux?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn