This article is a mirror article of machine translation, please click here to jump to the original article.

View: 23495|Reply: 10

php7.1 source code installation of openssl extension failed

[Copy link]
Posted on 8/21/2018 10:07:04 AM | | |
.so file has been generated, php.ini extension has also been added, and when restarting php-fpm, an error /etc/init.d/php-fpm: symbol lookup error: /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/openssl.so: undefined symbol: OPENSSL_init_ssl, ask for advice




Previous:ConfigurationSection
Next:IntelliJ idea smart hint ignores case settings
Posted on 8/21/2018 10:57:25 AM |
CentOS installs the PHP OpenSSL extension
https://www.itsvse.com/thread-3187-1-1.html
(Source: Architect_Programmer)
Please refer to this article
Posted on 8/21/2018 11:04:34 AM |
Dependencies are not solved, check whether the openssl lib is installed, whether the version is consistent, the inconsistent version may cause some functions to change, undefined symbol: OPENSSL_init_ssl, and not installed will also cause, so, check these two problems one by one
Posted on 8/21/2018 11:05:41 AM |
Online tutorials

Compiled and installed PHP7, lacks openssl support, and now continue to compile modules according to openssl.so. Don't write about principles, only about processes.

First, find the PHP source code directory of your corresponding version, enter the source code directory of PHP7, and enter EXT/OpenSSL.

Modify config0.m4 to config.m4; (I don't know why such a barrier is set)

Operation:

/usr/local/php/bin/phpize

./configure --with-php-config=/usr/local/php/bin/php-config

make && make install

Finally, add extension=openssl.so to the php.ini and restart php-fpm.
 Landlord| Posted on 8/21/2018 11:15:26 AM |
admin posted on 2018-8-21 10:57
CentOS installs the PHP OpenSSL extension
https://www.itsvse.com/thread-3187-1-1.html
(Source: Architect_Programmer)

The process is the same, except that an error is reported when restarting php-fpm at the end
 Landlord| Posted on 8/21/2018 11:16:01 AM |
Xiao Zhazha Posted on 2018-8-21 11:05
Online tutorials

Compiled and installed PHP7, lacks openssl support, and now continue to compile modules according to openssl.so. Don't write about principles, only about processes.

An error was reported when restarting
 Landlord| Posted on 8/21/2018 11:16:48 AM |
Published on 2018-8-21 11:04
Dependencies are not resolved well, check whether the openssl lib is installed, whether the version is consistent, inconsistent versions may cause some functions to change, u...

It should be a version issue, and it is being troubleshooted
 Landlord| Posted on 8/22/2018 5:51:03 PM |
The problem has been solved, the openssl version has been replaced, and the path is added when configuring openssl
Posted on 8/22/2018 6:56:59 PM |
Robin posted on 2018-8-22 17:51
The problem has been solved, the openssl version has been replaced, and the path is added when configuring openssl

Just solve it
Posted on 8/29/2018 2:27:18 PM |
Robin posted on 2018-8-22 17:51
The problem has been solved, the openssl version has been replaced, and the path is added when configuring openssl

What is your PHP version, openssl version? Configure OPENSSL and I also report the same error
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com