I have installed a fresh Laravel 5.4 on a Godaddy VPS. It’s returning a 500 error. I’ve done the symlink ln -s myapp.com/public public_html
but it’s still returning the 500 error. I’ve also changed the permissions to storage
and bootstrap/cache
to 777
but it’s still the same. This is my second Laravel app in the same VPS and the first one is working fine. They’re in 2 different directories/accounts home/usr1
and home/usr2
so I think it’s not a collision. Or is it? I need help. It’s already consumed so much of my time just searching and drifting from page to page just looking for a solution but I’ve found none.
I just found that there is a cPanel Log (how noob of me) and the it says
[Tue Apr 04 05:58:29.616821 2017] [:error] [pid 31803] [client 112.210.57.133:53210] SoftException in Application.cpp:261: File "/home/networkmarketing/networkmarketingfortuneformula.com/public/index.php" is writeable by group
[Tue Apr 04 05:58:29.613420 2017] [:error] [pid 31803] [client 112.210.57.133:53210] SoftException in Application.cpp:261: File "/home/networkmarketing/networkmarketingfortuneformula.com/public/index.php" is writeable by group
3
Answers
I don't know why after a fresh install the permissions are messed up but I changed the permissions of
/laravelapp
,/laravelapp/public
, and/laravelapp/public/index.php
to755
.It's now working perfectly.
Make you have the correct php version and all php modules you need installed.
I was missing mbstring and i had php 5.5 selected. upgrading to php 7 and installing all required modules worked.
Change permission to 755, if you have not access for that connect to support. Permission problem