Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Php7 tutorial on how to install openssl extensions

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces the "php7 installation openssl extension method tutorial" related knowledge, in the actual case operation process, many people will encounter such a dilemma, and then 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!

1. My source code is in / home/topsec/Documents/php-7.0.11, the installation location is in / usr/local/php7, and php.ini is under / usr/local/php7/lib. If there is no php.ini, you need to rename the configuration file php.ini-development or php.ini-production in the source code to php.ini and put it under lib.

2. Enter the extension directory of openssl: / home/topsec/Documents/php-7.0.11/ext/openssl

3. Run phpize

/ usr/local/php7/bin/phpize

4. Perform installation

. / configure-with-openssl-with-php-config=/usr/local/php7/bin/php-configmake&&make install

5. Libssl may not be found during the process. Execute the following command and then re-execute 4. Execute the installation.

Yum install opensslyum install openssl-devel

6. After performing the installation, I will be prompted to generate a .so file in a directory. The location I generated is under / usr/local/php7/lib/php/extensions/no-debug-non-zts-20151012/.

7. Open php.ini

Vim / usr/local/php7/lib/php.ini

Add the following two sentences

Extension_dir = "/ usr/local/php7/lib/php/extensions/no-debug-non-zts-20151012/" extension=openssl.so

8. Restart php.

This is the end of the tutorial on how to install openssl extensions for php7. 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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report