我在相对较新的Mojave安装上酝酿了Apache和PHP。在httpd.conf中,当我在Chrome的地址栏输入127.0.0.1时,我指定了"DirectoryIndex index.php index.html“,我得到了以下错误:"This page in working 127.0.0.1 In send any data.ERR_EMPTY_RESPONSE”。我的index.php的内容是phpinfo()。当我将DirectoyIndex的顺序更改为"DirectoryIndex index.html index.php“时,一切都运行正常,并且index.html得到了服务。实际上,似乎根本没有提供任何php文件。任何可能出了问题的建议都将受到高度赞赏。谢谢。
https://stackoverflow.com/questions/52972358
复制相似问题