MySQL Apache 未在 MAMP Pro 上启动
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25201280/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Apache not starting on MAMP Pro
提问by Toby Mellor
Apache wont start and it throws an error:
Apache 无法启动并引发错误:
OR Apache couldn't be started. Please check the log file for more information.
或 Apache 无法启动。请检查日志文件以获取更多信息。
dyld: Symbol not found: _iconv Referenced from: /usr/lib/libmecabra.dylib Expected in: /Applications/MAMP/Library/lib/libiconv.2.dylib in /usr/lib/libmecabra.dylib /Applications/MAMP/Library/bin/apachectl: line 80: 2799 Trace/BPT trap: 5 $HTTPD "$
dyld:找不到符号:_iconv 引用自:/usr/lib/libmecabra.dylib 预期在:/Applications/MAMP/Library/lib/libiconv.2.dylib 在/usr/lib/libmecabra.dylib /Applications/MAMP/Library /bin/apachectl: line 80: 2799 Trace/BPT trap: 5 $HTTPD "$
This is the same for multiple ports. The reccomended MAMP ports AND the regular apache ports.
这对于多个端口是相同的。推荐的 MAMP 端口和常规的 apache 端口。
MySQL starts perfectly fine.
MySQL 启动得很好。
Any suggestions?
有什么建议?
回答by Toby Mellor
I updated to the latest version of yosemite last night.
我昨晚更新到最新版本的优胜美地。
You apparently have to go to your MAMP folder in Applications. Go to bin
-> apache2
-> bin
.
您显然必须转到 Applications 中的 MAMP 文件夹。去bin
-> apache2
-> bin
。
Then rename the file from envvars
to _envvars
.
然后将文件重命名envvars
为_envvars
.
I also came across another problem of it not working correctly. Make sure the ports are Apache defaults, NOT MAMP defaults (port 80 etc). If it works straight away, this should not apply to you.
我还遇到了它无法正常工作的另一个问题。确保端口是 Apache 默认值,而不是 MAMP 默认值(端口 80 等)。如果它立即起作用,则这不适用于您。
回答by rii
Installing the latest release of MAMP 3 Version 3.0.7.3 in my case seems to solve this issue.
在我的情况下安装最新版本的 MAMP 3 版本 3.0.7.3 似乎解决了这个问题。