简体   繁体   中英

Laravel Fresh Install 500 Error on GoDaddy VPS

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

Change permission to 755, if you have not access for that connect to support. Permission problem

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 to 755 .

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM