Codeanywhere DevBox - Laravel 给出 500 错误

Codeanywhere DevBox - Laravel giving 500 error

我安装了从 Codenaywhere 获得的免费 DevBox(Ubuntu、PHP),并按照 Laravel 网站上的安装说明进行操作。

我在根目录设置了一个htaccess,所以当我进入域时它指向/public。

我收到 500 错误,但是当我在 public 中输入 index.html 文件时,它起作用了。似乎不喜欢 index.php。

为什么会出现此错误?

成功了,必须设置适当的权限。

sudo find ./ -type d -exec chmod 755 {} \; sudo find ./ -type f -exec chmod 644 {} \; sudo chown -R www-data:www-data public

按此顺序,希望对您有所帮助。