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

leocharrua's avatar

Installing Laravel in Apache Shared hosting

Hello. Anyone can tell me the way to install my Laravel aplication in an apache shared hosting?

  1. I upload the files by FTP and create the DB directly (without migrations). I don't have access to git or the shell ... then I don't see any other way to do that. Correct?

  2. The laravel aplication must be installed in the site root (Laravel restriction). But I need to install many aplications in my site, so I create subdomines (like app1.dominio.com) ... Is that right?

  3. I need to upload all the files or there are any that I can skip?

  4. I don't wanna access to the site using the "public" path (like app1.dominio.com/public), so I put the content of the "public" folder in dominio.com/app1 and I copy the rest of the files to other folder outside app1.

  5. With the .htaccess included with the laravel installation in the public folder (now in app1 folder) I have no troubles.

  6. Also, I need to change the routes in index.php file:

    require ... /vendor/autoload.php require ... /bootstrap/app.php

Anyone have other way?

Thanks

0 likes
2 replies
leocharrua's avatar

Thanks jlrdw ... Aparently is the same idea that I exposed. Thanks for the confirmation.

Please or to participate in this conversation.