再会。我在 Mac 上配置 Apache 时遇到问题。我从 MacPorts 安装了 apache 和 php,apache 工作正常。当我添加行
Include conf/extra/mod_php.conf
并重新启动 apache - 这是一个错误:
httpd: Syntax error on line 119 of /private/etc/apache2/httpd.conf: Cannot load /opt/local/apache2/modules/libphp5.so into server: dlopen(/opt/local/apache2/modules/libphp5.so, 10): Library not loaded: /opt/local/lib/libaprutil-1.0.dylib\n Referenced from: /opt/local/apache2/modules/libphp5.so\n Reason: Incompatible library version: libphp5.so requires version 6.0.0 or later, but libaprutil-1.0.dylib provides version 4.0.0
所以,这是我的问题:我应该怎么做才能解决这个问题?多谢!祝你好运。