laravel上有500个内部服务器错误?

时间:2014-11-08 22:27:05

标签: linux laravel centos

我在laravel中创建了一个项目,当我迁移到实时服务器时,它给了我500个内部错误。

这是我第一次尝试安装laravel。

运行rm -rf public_html AND ln -s laravel/public/ public_html

时会出现问题

这是错误日志:

[Sat Nov 08 12:57:46 2014] [notice] Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations
[Sat Nov 08 12:58:01 2014] [error] [client IP ADDRESS ] SoftException in Application.cpp:357: UID of script "/home/%STACK%/public_html/index.php" is s$
[Sat Nov 08 12:58:01 2014] [error] [client IP ADDRESS ] Premature end of script headers: index.php
[Sat Nov 08 12:58:01 2014] [error] [client IP ADDRESS ] SoftException in Application.cpp:357: UID of script "/home/%STACK%/public_html/index.php" is s$
[Sat Nov 08 12:58:01 2014] [error] [client IP ADDRESS ] Premature end of script headers: index.php
[Sat Nov 08 13:03:27 2014] [error] [client IP ADDRESS ] SoftException in Application.cpp:357: UID of script "/home/%STACK%/public_html/index.php" is s$
[Sat Nov 08 13:03:27 2014] [error] [client IP ADDRESS ] Premature end of script headers: index.php
[Sat Nov 08 13:03:27 2014] [error] [client IP ADDRESS ] File does not exist: /home/%STACK%/public_html/500.shtml
[Sat Nov 08 13:07:00 2014] [error] [client IP ADDRESS ] SoftException in Application.cpp:357: UID of script "/home/%STACK%/public_html/index.php" is s$
[Sat Nov 08 13:07:00 2014] [error] [client IP ADDRESS ] Premature end of script headers: index.php
[Sat Nov 08 13:07:00 2014] [error] [client IP ADDRESS ] File does not exist: /home/%STACK%/public_html/500.shtml
[Sat Nov 08 13:09:02 2014] [error] [client IP ADDRESS ] SoftException in Application.cpp:357: UID of script "/home/%STACK%/public_html/index.php" is s$
[Sat Nov 08 13:09:02 2014] [error] [client IP ADDRESS ] Premature end of script headers: index.php

1 个答案:

答案 0 :(得分:1)

将应用程序/存储文件夹的权限更改为755(如果不起作用)将其更改为777.如果在服务器上运行nginx,请检查/etc/nginx/nginx.conf文件并检查第一个说明用户运行nginx然后

chown -R www-data:www-data /your/document/root/public_html/

通过您在配置文件中找到的用户名更改www-data,您也可以通过在终端上运行ps来验证它