markdown macOS PHP7 Apache故障排除

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown macOS PHP7 Apache故障排除相关的知识,希望对你有一定的参考价值。

## 1 What I installed

Based on instructions from https://php-osx.liip.ch/ I ran:

`curl -s https://php-osx.liip.ch/install.sh | bash -s 7.1`

Process seemed to install fine.

## 2 What happened

Docker apache routing is maybe kind broke?

Was working with docker and started to get the following error:
```
ERROR: for knoxchamber_web_1  Cannot start service web: driver failed programming external connectivity on endpoint knoxchamber_web_1 (e88d596cf3bc3b0dec407c82c4392408f1588a1f58c9f3002124b8984da29d32): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)

ERROR: for web  Cannot start service web: driver failed programming external connectivity on endpoint knoxchamber_web_1 (e88d596cf3bc3b0dec407c82c4392408f1588a1f58c9f3002124b8984da29d32): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)
ERROR: Encountered errors while bringing up the project.
```

`localhost` just going to "It works!" from Mac files.

## 3 Changelog for Repair

### 3.1 - 011318 attempt to fix

Tried to uninstall based on instructions from https://php-osx.liip.ch/#uninstall

It says edit `/etc/apache2/httpd.conf`

From `LoadModule php5_module /usr/local/php5/libphp5.so` (line 172 ish?)

To `LoadModule php5_module libexec/apache2/libphp5.so`

__Found Issue in github related__: https://github.com/liip/php-osx/issues/238#issuecomment-337635129

__Problem__: that didn't exist. 

Was manually killing apache with `sudo apachectl -k stop` and running again with `sudo apachectl -k start`

Was able to get `http://knoxchamber.test/` working (Docker Container)

## 011418

`http://knoxchamber.test/` still working

Tried working with `http://local.magento/` not working.

`localhost`







以上是关于markdown macOS PHP7 Apache故障排除的主要内容,如果未能解决你的问题,请参考以下文章

TODO:macOS编译PHP7.1

markdown OSX上的php7.x

markdown 静态PHP7分析与phan和

markdown 如何使用EasyEngine安装php7.1-fpm

macOS Sierra安装Apache2.4+PHP7.0+MySQL5.7.16

markdown 使用PHP7-FPM和XDebug设置Nginx的快速指南