I have tried to host a laravel 5.1 application in CentOS Web Panel (CWP) using a single account for the application. I am not trying to host multiple site in single account. I have already setup my site in
/home/myaccount/project/website/
and my structure is
|-home
|-myaccount
|-project
|-website
--all laravel 5.1 directories
|-public_html
I have tried using these solutions:
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
but i am still getting this 500 error
Can i get any solutions for the problem. I have configured most of the parts but i still think there is some missing configurations. I have all requirements for Laravel 5.1 to support.
Edit: Looked into the error_log located in :
/usr/local/apache/logs/error_log
and found the error to be as
SoftException in Application.cpp:256: File ".. /public_html/index.php" is writeable by group.
I have solved it myself checking the error_log located in
/usr/local/apache/logs/error_log
Solution:
~/.bash_profile
umask 022
to bash_profilechmod -R 755 {file_path}
Viola the problem goes away.