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 hosting | cPanel VPS | Plain KVM VPS | |
|---|---|---|---|
| Good for | A simple Laravel site, a first project | Laravel next to client sites you manage in WHM | Production apps with queues, workers and APIs |
| Getting Laravel on | Listed in the Softaculous one-click apps | Your own deploy, with root | Your own deploy: Git, Composer, Nginx |
| PHP version | Selector, PHP 7.4 to 8.3 | What the panel and your root access give you | You install it: any version Laravel needs |
| Queue workers | Use a VPS | Yes, with root | Yes: Supervisor or systemd |
| Root access | No | Full root | Full root |
| Starts from | See 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:
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:
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:
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:
[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:
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:
* * * * * 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:
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).
Dedicated vCPU, NVMe and full root in Mumbai or Delhi NCR, ready a few minutes after payment, from ₹581/mo.
See VPS plansQuestions
Can I host Laravel on cPanel web hosting?+
Which hosting is best for Laravel in India?+
Which PHP version does Laravel need?+
Why must Nginx point at the public folder?+
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?+
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?+
Laravel app ko VPS par kaise chalayein?+
.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.