简体   繁体   English

在centos上安装Laravel

[英]Installing Laravel on centos

I have installed Centos 7 and I want to install Laravel 5 on it, I already installed PHP, MySQL and Apache also I installed composer and created a new Laravel project but when I try to access it's index file that is in public folder of the project I get this error : 我已经安装了Centos 7,并且想在其上安装Laravel 5,已经安装了PHP,MySQL和Apache,还安装了composer并创建了一个新的Laravel项目,但是当我尝试访问它的索引文件时,该索引文件位于项目的公共文件夹中我收到此错误:

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

other PHP files in /var/www/html folder work great /var/www/html文件夹中的其他PHP文件效果很好

终于我解决了:我禁用了SELinux,并使用以下命令更改了对我的项目文件夹的读写访问权限:chmod -R 757 folder

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

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