Laravel 5.1 在 cpanel/CWP 托管
Laravel 5.1 hosting in cpanel/CWP
我曾尝试在 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/servers/laravel-51-on-shared-hosting-not-working?page=3
但我仍然收到这个 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.
我已经自己解决了,检查位于
的error_log
/usr/local/apache/logs/error_log
解决方案:
- 编辑
~/.bash_profile
- 将此
umask 022
添加到 bash_profile
- 对现有文件进行排序
chmod -R 755 {file_path}
Viola 问题解决了。
我曾尝试在 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/servers/laravel-51-on-shared-hosting-not-working?page=3
但我仍然收到这个 500 错误
编辑: 查看位于 :
的 error_log/usr/local/apache/logs/error_log
发现错误为
SoftException in Application.cpp:256: File ".. /public_html/index.php" is writeable by group.
我已经自己解决了,检查位于
的error_log/usr/local/apache/logs/error_log
解决方案:
- 编辑
~/.bash_profile
- 将此
umask 022
添加到 bash_profile - 对现有文件进行排序
chmod -R 755 {file_path}
Viola 问题解决了。