Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/229.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/15.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
Php 在cpanel/CWP中托管Laravel 5.1_Php_Laravel 5.1_Cpanel_Internal Server Error_Public Html - Fatal编程技术网

Php 在cpanel/CWP中托管Laravel 5.1

Php 在cpanel/CWP中托管Laravel 5.1,php,laravel-5.1,cpanel,internal-server-error,public-html,Php,Laravel 5.1,Cpanel,Internal Server Error,Public Html,我曾尝试在CentOS Web Panel(CWP)中使用应用程序的单个帐户托管laravel 5.1应用程序。我不想在一个帐户中托管多个站点。我已经在中设置了我的站点 /home/myaccount/project/website/ 我的结构是 |-home |-myaccount |-project |-website --all laravel 5.1 directories |-public_html 我尝试过使用这些解决方案: 但

我曾尝试在CentOS Web Panel(CWP)中使用应用程序的单个帐户托管laravel 5.1应用程序。我不想在一个帐户中托管多个站点。我已经在中设置了我的站点

/home/myaccount/project/website/
我的结构是

|-home
  |-myaccount
    |-project
      |-website
        --all laravel 5.1 directories
    |-public_html
我尝试过使用这些解决方案:


但我仍然得到这个500错误

我能找到解决这个问题的办法吗。我已经配置了大部分部件,但我仍然认为缺少一些配置。 我有支持Laravel 5.1的所有要求

编辑: 查看位于以下位置的错误日志:

/usr/local/apache/logs/error_log
并发现错误为

SoftException in Application.cpp:256: File ".. /public_html/index.php" is writeable by group.

我通过查看位于中的错误日志解决了此问题

/usr/local/apache/logs/error_log
解决方案:

  • 编辑
    ~/.bash\u配置文件
  • 将此
    umask 022
    添加到bash\u配置文件
  • 对已经存在的文件进行排序
    chmod-R 755{file_path}

  • Viola问题消失了。

    检查PHP日志。您是否运行了
    composer安装
    ?@balping运行了
    ~/bin/composer安装
    ~/bin/composer更新
    也多次删除并重新控制了整个项目,但我在尝试5.1的
    symlink
    时总是会遇到此错误