# Best hosting for PHP and Laravel

> What PHP sites and Laravel apps need from a host, which hosting type fits, and a checklist for deploying Laravel on shared hosting or a VPS.

Source: https://comparehostingonline.com/hosting-for/php-laravel/

## Short answer

PHP runs on almost every kind of hosting, so a simple PHP site works on cheap shared hosting. Laravel needs more: a recent PHP version, Composer, the right PHP extensions and, ideally, SSH access and the ability to point the web root at the public folder. Shared hosting can work for small Laravel apps; a VPS is the safer choice for anything with queues, scheduled jobs or real traffic.

Last verified Nov 28, 2026 · [How we test](https://comparehostingonline.com/methodology/)

## What is PHP hosting?

PHP hosting is web hosting that can run PHP, the language behind WordPress, Laravel, Drupal and a large share of the web. In practice that describes most shared, VPS and managed plans, because PHP support is standard. The questions that matter are which PHP version the host offers, which extensions are installed, and how much you can change.

For a small brochure site or a WordPress blog, almost any shared host will do. For a custom application, the details below decide whether a plan is a good fit.

## What does Laravel need from a host?

Laravel is a PHP framework with more moving parts than a simple site. Before you buy a plan, check each item against the version of Laravel you use, since requirements change between releases. The official Laravel documentation lists the current minimum PHP version and extensions.

-   **A supported PHP version** Match the minimum for your Laravel release, and make sure the host updates PHP regularly.
-   **Composer and SSH** You install dependencies with Composer. Without SSH you must upload the vendor folder yourself.
-   **PHP extensions** Common ones include mbstring, openssl, pdo with your database driver, tokenizer, xml, ctype, json and fileinfo.
-   **Web root on public/** Laravel should serve from its public folder. If you cannot change the document root, you need a workaround.
-   **Cron and queue workers** Scheduled tasks need a cron job every minute, and queues need a process that stays running.
-   **Safe environment settings** Keep the .env file outside the public web root and out of version control.

## Which hosting type fits PHP and Laravel?

Fit for PHP and Laravel

| Type | Simple PHP site | Laravel app | Queues and cron | Effort |
| --- | --- | --- | --- | --- |
| [Shared hosting](https://comparehostingonline.com/hosting-types/shared/) | 5 out of 5 | 3 out of 5 | 2 out of 5 | 5 out of 5 |
| [Managed hosting](https://comparehostingonline.com/hosting-types/managed-wordpress/) | 4 out of 5 | 4 out of 5 | 4 out of 5 | 4 out of 5 |
| [VPS](https://comparehostingonline.com/hosting-types/vps/) | 5 out of 5 | 5 out of 5 | 5 out of 5 | 2 out of 5 |
| [Cloud platform](https://comparehostingonline.com/best/cloud-hosting/) | 4 out of 5 | 5 out of 5 | 5 out of 5 | 3 out of 5 |

Editorial ratings from 1 (weak) to 5 (strong). They describe the hosting type in general, not a specific provider.

### Shared hosting

Setup

Control panel, often cPanel. Quick to start.

Laravel fit

Works for small apps if SSH and Composer are available.

Cost

Lowest, but renewal prices rise.

### VPS

Setup

You install and secure the stack yourself.

Laravel fit

Full control over PHP, queues and workers.

Cost

A few dollars a month and up.

## How do you deploy Laravel on shared hosting?

If your plan has SSH, deployment is close to a normal server setup. If it does not, you have to build locally and upload the result, which is slower and easier to get wrong.

1.  1
    
    **Check the PHP version**
    
    Select the version your Laravel release needs in the control panel.
    
2.  2
    
    **Upload the project**
    
    Put the app above the public web folder, not inside it.
    
3.  3
    
    **Point the web root**
    
    Set the document root to the public folder, or copy its contents with the paths adjusted.
    
4.  4
    
    **Install dependencies**
    
    Run Composer over SSH, or upload the vendor folder built locally.
    
5.  5
    
    **Set the environment**
    
    Create .env with your keys and set the debug option off.
    
6.  6
    
    **Add the cron job**
    
    Run the Laravel scheduler every minute if you use scheduled tasks.
    

## When is a VPS the better choice?

Choose a VPS when your app uses queue workers, long-running processes, a Redis cache or custom services, or when you need to control PHP settings and extensions. You trade convenience for control: you install the web server, PHP and a database, keep them updated and take your own backups. Our [cheap VPS list](https://comparehostingonline.com/best/cheap-vps/) shows the lowest entry prices and what we found using several of them.

If you would rather not manage a server, a managed PHP host or an application platform handles more of the work for a higher price.

## What should you check before you buy?

-   The PHP versions offered, and how quickly new ones arrive.
-   SSH access and whether Composer is installed.
-   Whether you can change the document root.
-   Cron job and process limits, and whether workers can stay running.
-   Memory and execution time limits, which affect long tasks.
-   Backups, and whether the database is included in them.

Hosting that fits a simple PHP site is easy to find. Hosting that fits a growing Laravel app takes a few more checks, and it is worth doing them before you move.

## Common questions

Can Laravel run on shared hosting?

Yes, on plans that let you set the web root to the public folder and use a recent PHP version.

Do I need SSH?

It makes deployment, Composer and queues much easier.

How do I run queues?

With a worker process, which usually needs a VPS or managed platform.

## Related

[Node.js hosting](https://comparehostingonline.com/hosting-for/nodejs/) [VPS or shared hosting?](https://comparehostingonline.com/guides/vps-or-shared-hosting/) [Cheap VPS hosting](https://comparehostingonline.com/best/cheap-vps/) [What is cPanel?](https://comparehostingonline.com/guides/what-is-cpanel/)

## More hosting by stack

[Static site hosting](https://comparehostingonline.com/hosting-for/static-sites/) [Docker hosting](https://comparehostingonline.com/hosting-for/docker/) [Hosting for n8n (self-hosted automation)](https://comparehostingonline.com/hosting-for/n8n/) [Python and Django hosting](https://comparehostingonline.com/hosting-for/python-django/) [Ruby on Rails hosting](https://comparehostingonline.com/hosting-for/ruby-on-rails/) [Go (Golang) hosting](https://comparehostingonline.com/hosting-for/go/)

MH

**[Muhammad Hamza](https://comparehostingonline.com/team/muhammad-hamza/)** Founder & Editor

Writes and signs off every comparison, and runs the compliance reviews. Has worked on SOC 2 and HIPAA compliance programs for companies.

Our [editorial policy](https://comparehostingonline.com/editorial-policy/) and [testing method](https://comparehostingonline.com/methodology/) are public.
