This article references:
When you start Apache, resolve
How to Fix AH00558 and AH00557 httpd apr_sockaddr_info_get () Error MessageHttp://linux.101hacks.com/unix/httpd-apr-sockaddr-info-get-error/macOS Sierra Installation apache2.4+php7.0+mysql5.7.16 http ://www.cnblogs.com/ludashi/p/6202035.html resolves php problem http://blog.csdn.net/Time888/article/details/ 53610463 MAC OS comes with php.ini configuration http://blog.itpub.net/12231606/viewspace-1078976/
The Mac comes with the Apache installation directory in/etc under the Mac's PHP configuration file in/etc under the php.ini or Php.ini.default if the php.ini already exists on the other, and if not, you need to php.ini . default copy one, and rename it to php.ini all the default_socket in the php.ini are changed to the correct location of/tmp Mysql.sock
MacOS Sierrs above the PHP development environment installation