Permissions Issue with Laravel on CentOS

前端 未结 6 2035
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 00:35

I\'ve cloned a laravel repo to my CentOS 7 box. When I try to run it, I get a 500 error with nothing displayed.

So I check out /var/log/httpd/error_log

6条回答
  •  暖寄归人
    2020-12-01 00:53

    On CentOS 7 I had similar permissions issue. The solution which works for me is:

    Add user centos to group apache

    Add user apache to group centos

    Restart httpd

    The final line is vital as otherwise user apache will not be aware it is now also in group centos!

    Same as user apache logging out and back in again.

提交回复
热议问题