# Deploy Laravel 5 to /htdocs

**URL:** <https://forum.infinityfree.com/t/deploy-laravel-5-to-htdocs/26038>\
**Category:** Hosting Support\
**Created:** [February 15, 2020, 1:16am UTC](https://forum.infinityfree.com/t/deploy-laravel-5-to-htdocs/26038 "2020-02-15T01:16:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [February 15, 2020, 8:08am UTC](https://forum.infinityfree.com/t/deploy-laravel-5-to-htdocs/26038/2 "2020-02-15T08:08:31Z")

</div>

The first thing to understand is that Laravel is definitely not designed with the typical characteristics of a website hosting service. While it’s possible to run Laravel here, it’s not pretty or easy. If you want to have good hosting for Laravel, you’d need a service with at least SSH/command line support, and preferably Composer and Git support as well.

That said, you can run Laravel here, by simply uploading all the files of your Laravel codebase to the htdocs folder of your website using an FTP client of your choice (like FileZilla). This should include the `vendor` folder created by Composer, since you cannot install the Composer dependencies by hand.

After that, you’ll need to make any changes necessary to your `.env` file, and finally add a .htaccess file as described here:

> [@.htaccess for Laravel](https://forum.infinityfree.com/t/htaccess-for-laravel/24518):
>
> I was just playing around with a Laravel installation on free hosting. Normally, you should change the document root of your website to the public folder with Laravel. You can’t do this on free hosting, but you can simulate this with .htaccess rules. These are the the .htaccess rules I used: RewriteEngine On RewriteRule (.\*) /public/$1 [L] Simply create a file with the name .htaccess and these contents and upload it directly to your htdocs folder. This should rewrite all web requests to the p…

Note that you’ll still lack:

- Access to the `artisan` CLI.
- InnoDB database support.
- Automatic deployment from Git.
- Installation of Composer dependencies on the hosting server.
- Preparation of static files (Laravel Mix) on the hosting server.

If you can live with these limitations, you can use Laravel here.

---

_[View the full topic](https://forum.infinityfree.com/t/deploy-laravel-5-to-htdocs/26038)._
