Cheap PHP hosting for Laravel - What to pick and how to deploy

PHP is still one of the most common ways to build for the web, and AI writes Laravel quite well. Cheap PHP hosting is everywhere, but modern Laravel has requirements that older shared hosting plans do not always meet.
When is shared hosting enough?
Shared hosting with cPanel is still sensible if your site is plain PHP or WordPress and you are comfortable uploading files. For Laravel, check these before buying:
- The PHP version that
composer.jsonrequires. - SSH and Composer. Without them you run
composer installon your machine and upload the wholevendorfolder, which is slow and error prone. - Pointing the document root at
public. Laravel serves from thepublicfolder. If you cannot change this, you need workarounds that can easily expose your.envfile. - Cron and queue workers, if the application has background tasks.
Without these, a cheap plan becomes expensive in the time you spend working around it. The types are compared in how to choose cheap hosting.
Preparing a Laravel project
Declare the PHP version in composer.json:
{ "require": { "php": "^8.3" } }
Keep .env.example complete. This is where the system reads the database type from DB_CONNECTION and the list of variables you must fill in. Do not commit the real .env.
Commit composer.lock, so the server installs the exact versions you tested.
Build the front-end assets. If you use Vite or Tailwind, package.json needs a build script.
Do not keep files in storage unless they persist. Uploads should go somewhere durable. On VibeVN that is /app/data; the rest of the disk is lost on redeploy.
Deploying Laravel on VibeVN
- Push your code to GitHub.
- Open a new deployment and choose the repository. The system recognises Laravel or Symfony from
composer.json, and plain PHP fromindex.php. - Review the plan:
composer install, an asset build, then nginx and php-fpm on port 80. - Fill in the environment variables. If
DB_CONNECTIONismysqlorpgsql, a database is created andDB_HOST,DB_DATABASEand the others are set for you. - Deploy and watch the logs.
APP_KEY is generated once and kept across deployments, so sessions and encrypted data keep working. You do not need to run php artisan key:generate on the server.
Look closely at the migration option during deployment, so your database tables are created correctly. For projects using SQLite, the database file goes in /app/data/database.sqlite, which survives redeploys.
Common Laravel errors after deploying
| What you see | Cause | What to do |
|---|---|---|
No application encryption key has been specified | APP_KEY is missing | Generate it and set the APP_KEY variable |
SQLSTATE[42S02] or SQLSTATE[42P01] | Migrations have not run | Run php artisan migrate --force |
SQLSTATE[HY000] [2002] | Wrong database connection details | Check DB_HOST and DB_PORT |
| Blank page or a 500 error | Details hidden by APP_DEBUG=false | Read the logs; see fixing a 500 error |
CSS missing, links going to http | Wrong APP_URL or untrusted proxy | Set APP_URL with https:// and configure trusted proxies |
The last one is very common. The application sits behind a reverse proxy, so Laravel thinks it is on HTTP and generates http:// links that browsers block. Configuring trustProxies is the right fix.
How much does it cost?
The VibeVN Basic plan is $3.50 a month with 2 shared CPUs, 4 GB RAM, 10 GB storage, and MySQL and PostgreSQL databases. One site and one database count as two resources in the plan, and the database shares the plan's RAM. Check pricing for current figures.
Once the site is running you can point your domain to it, and HTTPS is issued automatically.
Frequently asked questions
Can I deploy WordPress?
VibeVN can read PHP projects from source code, but it is designed for a Git workflow and has no cPanel-style interface. WordPress installs plugins and stores files directly on the server, so dedicated shared hosting is usually more convenient.
Does Laravel run on 1 GB of RAM?
A small application can, but it shares that RAM with any database in the same plan. Try it during the 7-day trial before deciding.


