简体   繁体   English

本地主机上的ERR_EMPTY_RESPONSE错误 - OSX上的AMPPS

[英]ERR_EMPTY_RESPONSE error on localhost - AMPPS on OSX

I have AMPPS installed on OSX. 我在OSX上安装了AMPPS。 It was working fine with the previous osx version but with the new elcapitan i have ERR_EMPTY_RESPONSE error when i'm browsing my websites on localhost. 它与以前的osx版本一起工作正常,但是当我在localhost上浏览我的网站时,新的elcapitan我有ERR_EMPTY_RESPONSE错误。 It doesn't happen all the time but only when the website is using curl php function. 它不会一直发生,但只有在网站使用curl php功能时才会发生。 It happens on all browsers, chrome, safari etc. Any idea how to fix this problem ? 它发生在所有浏览器,chrome,safari等。任何想法如何解决这个问题?

I had the same problem with AMPPS and a Wordpress installation in OS X El Capitain. 我在OS X El Capitain中遇到了与AMPPS和Wordpress安装相同的问题。 I could fix by changing the following configurations in the PHP.ini 我可以通过更改PHP.ini中的以下配置来修复

session.save_handler = files
session.save_path = "/tmp"

Then after that you can 之后你可以

sudo chmod 7777 /tmp

This will ask for your administrator password. 这将询问您的管理员密码。

Other users say that they could also fix this by just restarting Apache and MySQL, but that didn't work for me. 其他用户说他们也可以通过重新启动Apache和MySQL来解决这个问题,但这对我不起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM