在 centos 上安装 Laravel

Installing Laravel on centos

我已经安装了Centos 7,我想在上面安装Laravel 5, 我已经安装了 PHP、MySQL 和 Apache,我还安装了 composer 并创建了一个新的 Laravel 项目,但是当我尝试访问它的索引文件时,它位于 public 文件夹中项目我得到这个错误:

Remote server or file not found
You tried to access the address http://localhost/ToDo/public/, which is currently   unavailable.

/var/www/html 文件夹中的其他 PHP 个文件效果很好

最后我解决了它: 我禁用了 SELinux 并使用以下命令将我的项目文件夹的只读访问权限更改为读写访问权限:chmod -R 757 folder