我从 https://www.ioncube.com/loaders.php
下载了加载器向导
向导好像有很多问题:
ioncube_loader_dar_x.x.so
文件
/usr/local/lib/php/pecl/20190902
/usr/local/etc/php/7.4/conf.d/00-ioncube.ini
我有
zend_extension = /usr/local/lib/php/pecl/20190902/ioncube_loader_mac_7.4.so
但我在下载的存档中没有 php 7.4 的加载程序文件。并且在存档中有 ioncube_loader_DAR_x.x.so
文件而不是
ioncube_loader_MAC_x.x.so
dar 和 mac 有什么区别?
我遇到了证书问题并遵循了本教程:
https://www.simplified.guide/macos/apache-php-homebrew-codesign
codesign --sign "Yarik Nashivan" --force --keychain ~/Library/Keychains/login.keychain-db /usr/local/opt/[email protected]/lib/httpd/modules/libphp7.so
codesign --sign "Yarik Nashivan" --force --keychain ~/Library/Keychains/login.keychain-db /usr/local/lib/php/pecl/20190902/ioncube_loader_mac_7.4.so
但我的 apache 日志中仍然有错误:
Failed loading /usr/local/lib/php/pecl/20190902/ioncube_loader_mac_7.4.so: dlopen(/usr/local/lib/php/pecl/20190902/ioncube_loader_mac_7.4.so, 9): no suitable image found.
Did find: /usr/local/lib/php/pecl/20190902/ioncube_loader_mac_7.4.so: code signing blocked mmap() of '/usr/local/lib/php/pecl/20190902/ioncube_loader_mac_7.4.so'
/usr/local/lib/php/pecl/20190902/ioncube_loader_mac_7.4.so: stat() failed with errno=22
brew install httpd