1

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

/home/myaccount/project/website/

我的结构是

|-home
  |-myaccount
    |-project
      |-website
        --all laravel 5.1 directories
    |-public_html

我尝试过使用这些解决方案:
https ://laracasts.com/discuss/channels/general-discussion/where-do-you-set-public-directory-laravel-5
https://laracasts.com/discuss/channels/服务器/laravel-51-on-shared-hosting-not-working?page=3
但我仍然收到此 500 错误

500内部服务器错误 我能得到任何解决这个问题的方法吗?我已经配置了大部分部件,但我仍然认为缺少一些配置。我有 Laravel 5.1 支持的所有要求。

编辑:查看位于的error_log:

/usr/local/apache/logs/error_log

并发现错误为

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

1 回答 1

1

我自己检查了位于

/usr/local/apache/logs/error_log

解决方案:

  1. 编辑~/.bash_profile
  2. 将此添加 umask 022 到 bash_profile
  3. 对已经存在的文件进行排序chmod -R 755 {file_path}

维奥拉问题就消失了。

于 2016-02-22T04:08:38.460 回答