20

Hi I'm trying to restart Apache after update of macOs Sierra and I'm getting this error>

dyld: Symbol not found: _apr_crypto_block_cleanup   Referenced from:
/usr/local/Cellar/httpd24/2.4.25/bin/httpd   Expected in:
/usr/local/opt/apr-util/libexec/lib/libaprutil-1.0.dylib  in
/usr/local/Cellar/httpd24/2.4.25/bin/httpd /usr/local/bin/apachectl:
line 79: 94187 Abort trap: 6           $HTTPD -k $ARGV

I've tried to reinstall apache and reinstall php56 and php70 but without any progress on this. Please does anybody know what to do?

1 Answer 1

54

Just had the same issue myself and looks like and issue with the apr-util package.

To solve this as I use homebrew I simply did brew reinstall apr-util and this fixed my issue.

If you're using another package manager try to reinstall apr-util with their correct syntax.

7
  • I found that the issue can also happen at random after a reboot, and this command still fixes it. Feb 6, 2017 at 19:47
  • Error happens and this command fixes it on El Capitan as well. Feb 24, 2017 at 6:39
  • this fixes on sierra too, (After a brew php upgrade)
    – vknyvz
    Mar 1, 2017 at 22:10
  • Still have the same issue on macOS 10.12
    – Dotl
    Mar 9, 2017 at 18:32
  • 2
    It still works in macOS Monterey. When I run brew services, httpd status was error and file path was blank. You saved me.
    – Felix Htoo
    Nov 23, 2021 at 20:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.