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

GregorSams's avatar

Deploy laravel 5.8 on hetzner shared hosting

Hello,

I want to deploy a laravel 5.8 on a hetzner shared hosting account.

I pointed my subdomain to my fresh /laravel_project/public directory. Furthermore, I configured my db with the .env file.

However, when opening the application I get an HTTP ERROR 500.

My hoster (hetzner) pointed out that the error must be in the application.

However, within /storage/logs there are no files.

Any suggestions what I am doing wrong? Are there any guides you can point me to?

I appreciate your replies!

0 likes
4 replies
kayschima's avatar

Hello Gregor,

i guess it could be missing rights on the storage folder. I have no experiences with Hetzner's webhosting but part of my apps run/ran with success on other german hosters (netcup, all-inkl).

Sometimes it's important to configure PHP not to run as a apache module (as user www-data) when you put your sources in your web-directory with your main Hetzner-account. Take the FPM- or FastCGI-Mode instead.

Having access to SSH, git and composer is also very helpful

My workflow is:

  • SSH-login to your webhosting folders
  • getting the sources from the Git repository
  • composer install
  • create your db
  • edit your .env file
  • php artisan migrate
  • pointing your (sub-)domain to the public -directory with PHP running in FPM-Mode

this works out of the box for me on my webhosting apps.

Regards, Kay

jove's avatar

Permissions is my guess. Check the webserver logs. My guess is that the webserver does not have write access to cache/logs.

modelbase's avatar

Permissions in the Storage and Bootstrap folders need to be set correctly.

Please or to participate in this conversation.