php7.2.8
安装grav (https://www.getgrav.org/) 时,指南提示在php.ini去掉注释extension=openssl (其实最后发现可能其实不需要去掉注释)
问题:
Warning: PHP Startup: Unable to load dynamic library ‘openssl’ (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/openssl (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/openssl: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20170718/openssl.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/openssl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
排查:
php编译时配置带了–with-openssl
phpinfo显示有openssl
php -m 也显示有openssl
openssl -v 也显示版本号
解决方法:
不重新编译PHP为php增加openssl.so模块
http://blog.51cto.com/weijixian1015/836517
新问题:
php -v 报错openssl不是valid library
结果时编译时需要先make clean
新问题:
PHP Warning: Module already loaded in Unknown on line 0
解决:
在php.ini注释掉
extension=openssl
https://stackoverflow.com/questions/32764981/php-warning-module-already-loaded-in-unknown-on-line-0
https://blog.csdn.net/solio5/article/details/55797050
其实zip.so也找不到,同理操作,只是configure时不需要—with-zip,因为不认
https://xiaozhou.net/turn_on_zip_extension_of_php-2011-04-10.html