In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "the process of compiling and installing php". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Php compilation and installation:
1. Open https://www.php.net/releases/ and select a version
2. Tar-zxvf php-7.1.0.tar.gz, this step is decompression. By decompressing, you can know that the core part of the source code is in the Zend folder, and the ext files are extended and built-in methods.
(. / configure-h > test, which can be viewed by exporting the configure file to the test folder with this command)
-h help command
-- prefix=PREFIX refers to the installation directory
-- enable-fpm opens the sapi of fpm through this command. Add this parameter to generate php-fpm, but without this parameter, php-fpm is not generated.
-- through this, enable-debug can see some debug information during the installation of the make (gcc mode, details to be further studied) command (using o0 mode), and will optimize some code, default to O2 mode (this step needs to be re-verified and explained)
The following parameters are generated: (specify installation directory, install fpm)
After completion, compile and install through make & & make install, that is, complete the basic installation.
3. Installation directory description:
(1) sbin directory, using-- enable-fpm installation, so php-fpm appears
(2) the executable program of php is under the bin directory.
This is the end of the process of compiling and installing php. Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.