In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "how to configure OpenSSL in the LEMP environment of Linux". 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!
First, make sure that the LEMP environment is compiled and installed by the source package, and that you know where the PHP installation directory is.
Secondly, you can install OpenSSL and OpenSSL-devel packages through yum source or source package compilation.
Then, go to the directory unzipped by PHP. My directory here is PHP-5.4.24. Under the PHP directory, there will be an extension directory for ext. Enter it, find and enter the openssl directory. At this point, the directory we are in is: / root/php-5.4.24/ext/openssl
There will be the following files in this directory, see the figure:
Then, execute the / usr/local/php5/bin/phpize command (make sure that both the M4 and autoconf tools are installed before execution, otherwise an error will be reported).
Note: here is my phpize path, which is executed according to my own installation path; if you can't find it, use whereis phpize to find it. If the execution Times fails to find the config.m4 file, rename the config0.m4 under the directory config.m4, because config0.m4 is the template for config.m4.
If the command is successfully executed, an extra configure file will automatically be created under the directory, and all you need to do is compile and install it. The process is as follows:
The code is as follows:
#. / configure-with-openssl-with-php-config=/usr/local/php5/bin/php-config
# make & & make install
Wait patiently. After the installation is complete, an extra openssl.so file will be added to the current modules directory, and then the following line will be added at the end of the php.ini configuration file:
The code is as follows:
Extension=openssl.so
Then, restart the nginx service and php-fpm, and that's fine!
This is the end of the content of "how to configure OpenSSL in Linux's LEMP environment". Thank you for 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.