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

Maxvilander's avatar

Error 500 on deploying laravel 10

Hi, I deployed my laravel app and uploaded on my altervista hosting but when i go to /public/index.php file it returns error 500. I've verified that all extensions laravel require are enabled, i don't know how to solve.

0 likes
7 replies
ollie_123's avatar

Hi @maxvilander, it could be a couple of things here.

First, i would start by checking your error logs under Storage/ Logs/laravel.log, this will give you a good indication of whats causing the error.

Secondly, i would check you have set your folder path correctly to the public folder of your Laravel application.

Let me know what the logs say and we'll figure it out from there.

1 like
Snapey's avatar

could be lots of things

  • permissions
  • missing app key (or missing .env)
  • invalid database credentials or missing database
  • cached data from previous install
  • missing required php extension
  • wrong php version

You won't have a clue unless you look in the logs

1 like
jlrdw's avatar

Also make sure folder structure is correct and you point to public as document root.

1 like
Maxvilander's avatar

I checked the /storage/logs/laravel.log file but it's empty, i gave 777 permission to the whole project but it continue not working. what should i do ? https://ibb.co/bz5fH1k here you find the folder structure

kokoshneta's avatar

when i go to /public/index.php

Why would you do that? That’s not how Laravel works. You go to the route you want, not the index file that initiates and launches the Laravel app. If you go directly to the index file, there’s no route for Laravel to show you, so it will of course give an error.

1 like
Snapey's avatar

and never put your laravel project in a folder that is being served by the webserver. Only the public folder should be accessible.

And setting 777 permissions is never a solution.

1 like
jlrdw's avatar

And I suggest you take the free Laravel training from here.

1 like

Please or to participate in this conversation.