Hosting
Servers
Web Development Pricing
Resources
Get started → Log in
Home/Blog/Laravel hosting in India

Laravel hosting in India:
deploy it on a KVM VPS.

28 November 20267 min readBy the RapidServer team

Where can you host a Laravel app in India?

Host a Laravel app in India on a Linux KVM VPS with full root, where you install PHP 8.3 or newer, Nginx, Composer, a queue worker and the scheduler cron yourself. A RapidServer VPS starts at ₹581/mo plus 18% GST in Mumbai (BOM1) or Delhi NCR (DEL1). A simple Laravel site can start on cPanel web hosting instead.

Web hosting vs cPanel VPS vs plain VPS for Laravel

Our web hosting page lists Laravel among the Softaculous one-click apps and offers a PHP 7.4 to 8.3 selector per site, so a simple Laravel site is a fair first home there. Queue workers, Supervisor and your own Composer and PHP setup need a VPS, which is also where developer workloads usually end up. A cPanel VPS sits in the middle: root access plus the panel.

cPanel web hostingcPanel VPSPlain KVM VPS
Good forA simple Laravel site, a first projectLaravel next to client sites you manage in WHMProduction apps with queues, workers and APIs
Getting Laravel onListed in the Softaculous one-click appsYour own deploy, with rootYour own deploy: Git, Composer, Nginx
PHP versionSelector, PHP 7.4 to 8.3What the panel and your root access give youYou install it: any version Laravel needs
Queue workersUse a VPSYes, with rootYes: Supervisor or systemd
Root accessNoFull rootFull root
Starts fromSee web hosting₹581 + ₹1,499 a month plus 18% GST₹581/mo plus 18% GST

Check the PHP version your Laravel release needs against the plan before you buy. Not sure? Ask sales. The rest of this guide is the plain VPS route. More in shared vs VPS vs dedicated.

Step 1: PHP 8.3 and the packages Laravel needs

On a VPS you install your own PHP, so you choose the version. Laravel 13 needs PHP 8.3 or higher, per the Laravel deployment docs, and a KVM VPS can run it: Ubuntu 24.04 packages PHP 8.3 (Ubuntu VPS in India). An older Laravel release may need an older PHP, so check the docs for your version. The docs also list the PHP extensions Laravel needs. Log in over SSH (SSH kya hai) and install:

packages
sudo apt update
sudo apt install nginx php8.3-fpm php8.3-cli php8.3-mbstring \
  php8.3-xml php8.3-curl php8.3-mysql composer unzip git supervisor
php -v

The VPS is usually ready a few minutes after payment.

Step 2: Code, Composer, .env and storage permissions

Clone the app, install without dev packages, create .env and generate the key:

deploy the code
cd /var/www
sudo git clone https://github.com/you/myapp.git
cd myapp
sudo composer install --no-dev --optimize-autoloader
sudo cp .env.example .env
sudo php artisan key:generate
sudo chown -R www-data:www-data storage bootstrap/cache
sudo chmod 600 .env

Laravel must write to storage and bootstrap/cache, so the web server user needs access to both. In .env, set APP_ENV=production and APP_DEBUG=false: Laravel warns that debug mode on a live site can expose sensitive configuration. Add your database details, then run php artisan migrate --force.

Step 3: Nginx with the document root at /public

Point Nginx at the app's public folder, never the project root, or your config files are exposed. This follows the sample in the Laravel docs. Save it as /etc/nginx/sites-available/example.com:

nginx server block
server {
    listen 80;
    listen [::]:80;
    server_name example.com;
    root /var/www/myapp/public;

    add_header X-Frame-Options "SAMEORIGIN" always;
    add_header X-Content-Type-Options "nosniff" always;

    index index.php;
    charset utf-8;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    error_page 404 /index.php;

    location ~ ^/index\.php(/|$) {
        fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include fastcgi_params;
    }

    location ~ \.php$ {
        return 404;
    }

    location ~ /\.(?!well-known).* {
        deny all;
    }
}

Link it into sites-enabled, run sudo nginx -t and reload Nginx. Open only SSH, 80 and 443 in the firewall (firewall guide) and point the domain's A record at the VPS IP.

Step 4: Queue workers with Supervisor

Queued jobs need a worker running all the time. The queue docs recommend a process monitor such as Supervisor to restart queue:work if it stops. Create /etc/supervisor/conf.d/laravel-worker.conf, adapted from the docs' example:

laravel-worker.conf
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/myapp/artisan queue:work --sleep=3 --tries=3 --max-time=3600
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=www-data
numprocs=2
redirect_stderr=true
stdout_logfile=/var/www/myapp/storage/logs/worker.log
stopwaitsecs=3600

Keep stopwaitsecs longer than your longest job. Start the workers:

supervisorctl
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start "laravel-worker:*"

New Laravel apps default to the database queue; Redis is the usual upgrade. Workers keep your code in memory, so run php artisan queue:restart after every deploy.

Step 5: The scheduler cron

Laravel's scheduler needs one cron entry that runs schedule:run every minute; your tasks live in routes/console.php. Open the web user's crontab with sudo crontab -u www-data -e and add:

crontab
* * * * * cd /var/www/myapp && php artisan schedule:run >> /dev/null 2>&1

Step 6: HTTPS, optimisation and updates

Add free HTTPS with Certbot as in our Node.js hosting guide. Before each release, take a snapshot, then run:

update
cd /var/www/myapp
sudo git pull
sudo composer install --no-dev --optimize-autoloader
sudo php artisan migrate --force
sudo php artisan optimize
sudo php artisan queue:restart

optimize caches config, events, routes and views. Once config is cached, .env is no longer loaded, so call env() only inside config files. Every RapidServer VPS gets daily backups kept for 7 days plus snapshots on demand; also dump your database and copy it off the server (VPS backup guide).

Which VPS plan to pick for Laravel

  • Stardust (2 vCPU, 4 GB RAM, 20 GB NVMe, ₹581/mo): a small app or a staging copy.
  • New Moon (2 vCPU, 4 GB RAM, 40 GB NVMe, ₹674/mo): a live app with a database and a worker.
  • Full Moon (4 vCPU, 8 GB RAM, 160 GB NVMe, ₹1,723/mo): MySQL or PostgreSQL, Redis and several workers on one server.

Billing is monthly plus 18% GST. Pick Mumbai or Delhi NCR by where your users are (data centers); Noida is served from DEL1. Support works 24/7; managed support adds ₹1,499/mo (managed vs unmanaged).

Host your Laravel app on a KVM VPS in India.

Dedicated vCPU, NVMe and full root in Mumbai or Delhi NCR, ready a few minutes after payment, from ₹581/mo.

See VPS plans

Questions

Can I host Laravel on cPanel web hosting?+
Our web hosting page lists Laravel among the Softaculous one-click apps and offers a PHP 7.4 to 8.3 selector per site. For queue workers, Supervisor or your own Composer and PHP setup, use a VPS. For versions on a plan, ask sales.
Which hosting is best for Laravel in India?+
A KVM VPS in India gives you full root, your own PHP version, Nginx, queues and cron. A RapidServer VPS starts at ₹581/mo plus 18% GST in Mumbai or Delhi NCR. Simple sites can start on web hosting.
Which PHP version does Laravel need?+
Laravel 13 needs PHP 8.3 or higher, according to the Laravel docs. Older releases may accept older PHP, so check the docs for your version. On a VPS you install the PHP you need; Ubuntu 24.04 packages PHP 8.3.
Why must Nginx point at the public folder?+
Laravel's docs say to send every request to public/index.php and never serve the project root, which would expose configuration files such as .env. Set root to /var/www/myapp/public.
How do I run Laravel queues in production?+
Run php artisan queue:work under Supervisor so it restarts if it stops, and run php artisan queue:restart after each deploy so workers load the new code. This needs a VPS.
How soon is the VPS ready?+
Usually a few minutes after payment. You then log in over SSH and install PHP, Nginx and Composer. Daily backups kept for 7 days are included, and support works 24/7.
Laravel app ko VPS par kaise chalayein?+
Linux KVM VPS lijiye, PHP 8.3, Nginx aur Composer install kijiye, code clone karke .env banaiye. Nginx ka root public folder par rakhiye, queue ke liye Supervisor aur scheduler ke liye cron lagaiye, phir Certbot se HTTPS. VPS ₹581/mo plus 18% GST se shuru hota hai.

Host your Laravel app on a VPS in India.

KVM VPS with dedicated vCPU, NVMe and full root in Mumbai or Delhi NCR, billed monthly in rupees with a GST invoice.