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

Sekhoane's avatar

Hosting a laravel app/site?

I am trying to upload a site on linux shared hosting but getting some errors that point to a package I installed. Is shared hosting the best when it comes to hosting laravel apps? I just need pointers and advise. Thanks in advance.

0 likes
4 replies
primordial's avatar

I assume you have a virtual machine on a shared server? Should not be an issue. What's the error?

mikevrind's avatar

You can't expect people to help you with errors if you don't state the error(s) you get. My guess is that the PHP configuration on the shared server doesn't meet the requirements of a package.

A shared hosting environment shouldn't have to be a problem. I also run a few Laravel websites on a shared server without any problems.

Sekhoane's avatar

ErrorException in ClassLoader.php line 414: include(/home/devapyek/wiasys/vendor/composer/../kordy/ticketit/src/TicketitServiceProvider.php): failed to open stream: No such file or directory

codenex's avatar
codenex
Best Answer
Level 7

Likely your shared host is making an www/ directory or public_html/ or something like that as yoru document root. Laravel apps use their own public directory as the document root.

You need to change the configuration to server the public/ directory instead. You'll have to check with your host on how to do this. Once this is done the relative paths should work correctly.

Please or to participate in this conversation.