我只是一个新的Laravel学生(自学)
我将xampp更新为最新版本,尝试打开我的项目时出现此错误
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.41 (Unix) OpenSSL/1.1.1c PHP/7.1.32 mod_perl/2.0.8-dev Perl/v5.16.3
我已经尝试过了,但是仍然无法正常工作
sudo chmod -R 777 storage
sudo chmod -R 777 bootstrap
请帮助我。.怎么办?
答案 0 :(得分:1)
您可以使用命令“ php artisan serve
”运行laravel。这样,您就不需要XAMPP Apache。或者,如果要从apache运行它,则必须将其指向laravel公共文件夹。