2014-11-08 227 views
0

我在laravel做了一个项目,当我迁移到一个活的服务器时,它给了我500个内部错误。laravel上500内部服务器错误?

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

当我运行rm -rf public_htmlln -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

更改您的应用程序/存储文件夹到755权限如果没有作品将其更改为777.如果你的服务器检查/etc/nginx/nginx.conf文件运行nginx的,并检查其中指出用户首先运行Nginx的,然后

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

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