Help solve the problem.

After installing os x el capitan on your mac mini via homebrew installed php and mysql . Created a local host, and everything works, but when I do apachectl configtes t throws out such an error:

httpd: Syntax error on line 169 of /private/etc/apache2/httpd.conf: Cannot load /usr/local/opt/php56/libexec/apache2/libphp5.so into server: dlopen (/ usr / local / opt / php56 /libexec/apache2/libphp5.so, 10): Library not loaded: /usr/local/opt/libxml2/lib/libxml2.2.dylib\n Referenced from: / usr / local / opt / php56 / libexec / apache2 / libphp5.so \ n Reason: Incompatible library version: libphp5.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0

Already reinstalled through homebrew libxml2, climbed the entire Internet - nothing helps!

An error is thrown in this config line:

LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so

Tell me how you can fix it!?

  • didn't it occur to you to translate an error message? and look in configs? Syntax error on line 169 /private/etc/apache2/httpd.conf - strangeqargo
  • @strangeqargo, read the question, I wrote there. that googled a lot and was looking for answers! Nothing happened, so I wrote here! - Maybe_V
  • 1) you have a syntax error in apache config. If you don’t fix it - the whole further conversation doesn’t make sense, you would have at least brought this piece of the config in the question - strangeqargo
  • @strangeqargo, the question has been edited and brought a piece of kofig! - Maybe_V

1 answer 1

google://el capitan libxml2.2.dylib provides version 10.0.0

first result in comments from githab

I finally solved it. This is distributed with OSX. Install apache from brew. What you have to do is simply:

Further on, the problem was solved like this