Please enable JS


Configure Laravel 5 for Shared Hosting

  0 reviews
16.99 20.00

I recently had to build a website that would be used on shared hosting. At first, I went with a standard HTML index.html file and then create a file called contact.php to handle the contact form submit action. The website can be found at as soon as they move the website to the server that has PHP 5.6 version.

As I started coding the website the number of lines started to grow and I had a lot of duplicating syntax for stuff like images, containers etc.. Somehow I got over it and was feeling happy with it, but then I had to deal with validating the contact form using AJAX. As you can guess I did a quick research and found out that Laravel can run on shared hosting, but with a few limitations:

  • There is no console (artisan)
  • You cannot use Composer to install/update
  • You cannot use Git to version your application

That being said, there are a few requirements that your server needs to have in order for Laravel to work:

  • PHP >= 5.5.9
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension

To be honest, I haven't checked that my shared hosting server has mentioned PHP extensions, but since it all works I guess that it does.

In this tutorial, I will show you how to configure your Laravel application to be able to run on shared hosting. You can view the code for this tutorial on GitHub.


SKU: configure-laravel-5-for-shared-hosting
Author Mario Bašić
Words 961
Published At July 29, 2016
Last Updated October 06, 2017

No reviews yet.

Related Tutorials

Multilingual Web Application with Laravel: Authentication and Authorization

Laravel makes implementing authentication very simple. We will implement authentication in our existing application.


Multilingual Web Application with Laravel: Multilingual CRUD

In this tutorial, we will cover creating, updating, deleting and viewing all multilingual articles.


Multilingual Web Application with Laravel: Model Translations

Handling multilingual models has never been easier.


Multilingual Web Application with Laravel: Language Switcher

We will implement a way for users to choose a language that they want.


Multilingual Web Application with Laravel: Static Content

Let's start with the basics. Learn how to change your application locale, write localization files and use translations in your Laravel application.


Laravel API 101: DOCUMENT

With API Blueprint you can quickly design and prototype APIs to be created or document and test already deployed mission-critical APIs.

25.00  19.99
Instant Delivery
24/7 Customer Service
Payment Options
7 Days Refunds