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

Innobas's avatar

Laravel Hosting Platform

Good morning am new to laravel whats the best web hosting platfrom for laravel with php version 8.1 alread enanbled

i have an active accoount but the cpanel is running on php v 7.4 which is making my laravel project not to work

Please Help ASAP

0 likes
23 replies
Tray2's avatar

I would say that one of these

  • AWS
  • Linode
  • Digital Ocean
  • Hetzner

Oh, and your host really should upgrade since 7.4 has reached end of life, and is no longer supported.

2 likes
jlrdw's avatar

@Innobas Also you can change the php version in cpanel if you want.

2 likes
Innobas's avatar

@jlrdw hi i have tried to change but im getting another error s currently unable to handle this request. HTTP ERROR 500

have tried most of the forums suggestions and i dont seem to find a solution

Tray2's avatar

@Innobas 500 means that you have fucked up in your code. It usually point you to where you fucked up.

2 likes
Innobas's avatar

@Tray2 Hi agree have just checked the log file and this is what im getting H01276: Cannot serve directory /home/boazifin/public_html/: No matching DirectoryIndex

Tray2's avatar

@Innobas Have you made any changes to the laravel files?

The document root should always be public, nothing else.

2 likes
Innobas's avatar

@Tray2 have not done any changes and its working alright on local machine so i have just uploaded the same code. so apparently the root directory is doing to public

the 500 error is only coming up when i enable php 8.1.0 on the domain. if i downgrade to 8.0 its show: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0".

Innobas's avatar

@Tray2 have just looked at the link..

does this meen need to contact the service provider cause i dont this i have access to httpd.config from my cpanel

Tray2's avatar

@Innobas I never used cpanel so I don't know what settings you can make, but defining which index file you should use are to be one you can set.

1 like
Innobas's avatar

@Tray2 Noted. let me try to see if the service proider can help

Sinnbeck's avatar

Personally I use hetzner or digital ocean along with ploi.io

Ploi sets up everything for me and let's me deploy by the click of a button. It also keeps the server up to date, and setting up queue and cron is really easy

2 likes
Sinnbeck's avatar

@Innobas ploi is like a middleman. It works with any of the providers in the list. But instead of you having to set up the server, they do it for you. Laravel Forge is the same

1 like
Innobas's avatar

@tray2 & @sinnbeck Have tried linode.

have found it to be expensive. i was thinking the subscription will be only for hosting which is not.

i just hope i will fine something billed only for hosting and other essential adons

Tray2's avatar

@Innobas That is the problem with cloud hosting. Shared hosting is cheaper but not configurable enough.

1 like
Sinnbeck's avatar

@Innobas don't know about linode but hetzner stats at € 4.51. I think that's pretty cheap? I run my blog on that

1 like
Innobas's avatar

@Tray2 oh yeah. am still research though. will share when i found something am confortable with

Innobas's avatar

I finally managed using the local service provider. I requested the isp to set my account as per the laravel requirements

Please or to participate in this conversation.