简体   繁体   English

使用MAMP的Laravel错误HTTP 500

[英]Laravel Error HTTP 500 with MAMP

I have a Laravel project which works on my Windows. 我有一个可在我的Windows上运行的Laravel项目。 I'm trying to transfer it on my Mac. 我正试图在我的Mac上传输它。 Unfortunately, I have an Error 500 when I go on my website. 不幸的是,当我访问我的网站时,我有一个错误500。 When I check apache log I have : client denied by server configuration. 当我检查apache日志时,我有:客户端被服务器配置拒绝。 Apache is 2.2 version on MAMP. Apache是​​MAMP的2.2版本。

This error means that the access to the directory on the file system was denied by an Apache configuration. 此错误表示Apache配置拒绝访问文件系统上的目录。

check runner of apache and permissions of directories ... 检查apache的运行者和目录的权限......

in installation of laravel : 安装laravel时:

Directory Permissions 目录权限

After installing Laravel, you may need to configure some permissions. 安装Laravel后,您可能需要配置一些权限。 Directories within the storage and the bootstrap/cache directories should be writable by your web server or Laravel will not run. 存储和引导/缓存目录中的目录应该可由Web服务器写入,否则Laravel将无法运行。 If you are using the Homestead virtual machine, these permissions should already be set. 如果您使用的是Homestead虚拟机,则应已设置这些权限。

Change the chmod of storage and all files inside by -R, and also don't forget to do the same with the bootstrap/cache folder. 通过-R更改存储的chmod和所有文件,并且不要忘记对bootstrap / cache文件夹执行相同的操作。

chmod -R 775 storage
chmod -R 775 bootstrap/cache

Check that on "Directory Permissions" in the official laravel documentation installation : https://laravel.com/docs/5.3/installation 检查官方laravel文档安装中的“目录权限”: https ://laravel.com/docs/5.3/installation

Hope that helped. 希望有所帮助。 Regards. 问候。

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

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