Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

santoshdc's avatar

500 | SERVER ERROR appeared after uploading file to shared hosting.

I am facing problem on live server. It was working perfectly on localhost but when I upload file shared hosting it is started showing 500 | SERVER ERROR. My folder path is like this ; \home\himalipa\public_html\mycurrentdomain.com.

0 likes
7 replies
Tray2's avatar

Can you give us the full error message?

santoshdc's avatar

There only "500 | SERVER ERROR" messages showing. You can just see at mavirajhena.edu.np

trin's avatar

500 is internal server error, often happends, when php get fatal error. @tray2 meant, can u check your error.log and post here error, if u cant solve it?

jlrdw's avatar

Did you point to public as your document route.

siangboon's avatar
Level 54

did you enable the debug mode by setting APP_DEBUG=true in .env file...

usually, the first time upload and give error will be:

  • document root not set correctly
  • .htaccess
  • permissions
  • typo error (case sensitivity) on certain file name
santoshdc's avatar

[2021-02-22 02:27:37] production.ERROR: Trait 'App\Traits\createdBy' not found {"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Trait 'App\Traits\createdBy' not found at /home/himalipa/public_html/mavirajhena.edu.np/app/Models/Welcome.php:9) [stacktrace] #0 {main} "}

This is the problem I got on error log. I checked on line number 9 on the welcome.php model but there is createdBy exists.

warpig's avatar

Perhaps try and repeat the same action in your local environment since the APP_DEBUG variable should be false.

I was having this same issue and it was because whenever I stored a blog post I always had to include an image, the logic in the method would tell you that, there was no if statement in place so it was always expecting an image no matter what.

Please or to participate in this conversation.