Laravel 4 ERROR 500后全新安装的LAMP [英] Laravel 4 ERROR 500 After fresh install on LAMP

查看:280
本文介绍了Laravel 4 ERROR 500后全新安装的LAMP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次Ubuntu背后:我跟着这个教程安装的Apache,PHP,SQL和phpMyAdmin的 http://www.howtoforge.com/ubuntu_lamp_for_newbies

This is my first time behind Ubuntu: I followed this tutorial to install Apache, PHP, SQL and phpMyAdmin. http://www.howtoforge.com/ubuntu_lamp_for_newbies

我没有错误,一切工作顺利。然后我下载 composer.phar laravel 我跑 PHP composer.phar安装 PHP composer.phar更新。没有错误,在这里无论我再改apache配置有DirectoryROot在无功/网络/公众。

I got no errors and everything is working smooth. I then downloaded composer.phar and laravel I ran php composer.phar install and php composer.phar update. No errors here either I then changed apache config to have DirectoryROot at var/www/public.

和启用重写mod:须藤a2enmod重写

标准安装过程不过访问本地主机只给出了0 PHP的错误信息显示:哎呀,看起来像出事了。

Standard installation procedure however visiting localhost gives 0 php error messages only shows: Whoops, looks like something went wrong.

Apache的错误日志显示什么,访问日志只显示500错误。我在想什么我就在整个过程3次。

Apache error logs show nothing, access log only shows the 500 error. What am I missing I went over the entire procedure 3 times.

推荐答案

我解决了这个问题。

1)打开终端
2)浏览到您的laravel根文件夹 CD无功/网络
3)执行 sudo的搭配chmod -R 777 *

1) Open Terminal
2) Navigate to your laravel root folder CD var/www
3) Execute sudo chmod -R 777 *

这解决了这个问题,但是要小心这一点。确保当您从本地转移到住你的权限设置是否正确。

This solved the problem but be careful with this. Make sure your permissions are properly set when you move from local to live.

这篇关于Laravel 4 ERROR 500后全新安装的LAMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆