MAMP OS X 和 CakePHP 设置服务器错误
刚刚在 OSX 上安装了 MAMP,当我导航到我在 Windows 上制作的任何蛋糕应用程序时,我收到服务器错误,
The website encountered an error while retrieving http://localhost:8888/myApp. It may be down for maintenance or configured incorrectly.
我没有使用本机根文件夹,我正在使用 /public/sites
我在本地主机上查看正常的 php 页面没有问题,该问题似乎仅在尝试查看蛋糕应用程序时才存在。这似乎与 wamp 上未启用 mod 重写类似的错误,但我检查了 httpd.conf 文件,在 MAMP/conf/apache/httpd.conf
中似乎没问题。
LoadModule rewrite_module modules/mod_rewrite.so is not commented out.
谢谢
Just installed MAMP on OSX, and when I navigate to any of my cake apps that I have made on windows, I get a Server Error,
The website encountered an error while retrieving http://localhost:8888/myApp. It may be down for maintenance or configured incorrectly.
I am not using the native root folder, I am using /public/sites
I am not having a problem viewing normal php pages on my localhost, the problem only seems to exist when trying to view a cake app. It seems like a similar error to the mod rewrite not being enabled on wamp but i checked the httpd.conf file and it seems fine in MAMP/conf/apache/httpd.conf
.
LoadModule rewrite_module modules/mod_rewrite.so is not commented out.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将
Options +FollowSymLinks
添加到您的根 .htaccess:Add
Options +FollowSymLinks
to your root .htaccess:导航到 app/webroot/index.php 并将 webroot 路径从 Windows 位置更改为新的 osx 路径。
Navigate to app/webroot/index.php and changed the webroot path from windows location to the new osx path.