openssl 安装坑

Cannot find config.m4.
Make sure that you run ‘/opt/local/bin/phpize’ in the top level source directory of the module



将 config0.m4 改名为 config.m4 或者直接・cp config0.m4 config.m4 就可以解决



运行 phpize 命令
运行 ./configure –with-php-config=/usr/local/php/bin/php-config 命令
运行 make & make install



https://learnku.com/articles/24557



php-src/ext/openssl/openssl.c:2001:10: error: incomplete definition of type ‘struct x509_st’
if (cert->name) {



PHP 5.6 is receiving only security fixes and OpenSSL 1.1 is not supported. Please use PHP 7.x if you want to use OpenSSL 1.1.



This ticket should be closed as it is not an OpenSSL issue.



PHP 7.0.8 (cli)



不支持openssl 1.1



https://github.com/openssl/openssl/issues/4133

https://stackoverflow.com/questions/53977923/php-5-6-x-source-install-with-apache-but-openssl-error-occurs-dereferencing-po



https://externals.io/message/97920



PHP 5.6 and 7.0 doesn’t run on Catalina - openssl 1.0.0 needed



https://github.com/eXolnet/homebrew-deprecated/issues/14



https://www.cnblogs.com/tinywan/p/7832066.html



升级到7.1



./configure –prefix=/usr/local/php –enable-ftp –enable-zip –enable-fpm –with-pdo-mysql –with-jpeg-dir –with-png-dir –with-gd –with-curl –enable-mbstring –enable-bcmath –enable-sockets



make & make install



Category php