Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux laravel上的500内部服务器错误?_Linux_Laravel_Centos - Fatal编程技术网

Linux laravel上的500内部服务器错误?

Linux laravel上的500内部服务器错误?,linux,laravel,centos,Linux,Laravel,Centos,我在laravel做了一个项目,当我迁移到一个实时服务器时,它给了我500个内部错误 这是我第一次尝试安装laravel 当我运行rm-rf public_html和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 -- res

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

这是我第一次尝试安装laravel

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

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

chown -R www-data:www-data /your/document/root/public_html/
通过在配置文件中找到的用户名更改www数据您还可以通过在终端上运行ps来验证它