Get started

Set Up a LEMP Stack on Your AtoZNode VPS

A LEMP stack gives you Nginx, MariaDB and PHP-FPM, ready for your own PHP site. Find the web folder and database login.

Order LEMP stack from the Marketplace App tab as shown in how to order a VPS with a one-click app. When the install card on your server page shows the finished result, follow the steps below.

What you get

Nginx (the web server), MariaDB (the database) and PHP-FPM. It needs 1 GB of memory and takes 4 to 8 minutes.

1. Check it works

Open http://your-server-ip/ from the server page. You see a test page. The server page also lists the PHP version.

2. Put your site in the web folder

The web folder is /var/www/html. Connect with SSH and upload or create your files there. Replace the test page with your own index.php or index.html.

3. The database

MariaDB is installed. Sign in as root on the server with:

sudo mysql

From there, create a database and a user for your site:

CREATE DATABASE mysite;
CREATE USER 'siteuser'@'localhost' IDENTIFIED BY 'a-strong-password';
GRANT ALL ON mysite.* TO 'siteuser'@'localhost';

Use your own names and password, and never use the database root account inside your site's code.

4. Domain and HTTPS

Point your domain at the server (guide) and add a free certificate (guide).

Next steps

Still stuck? Contact our team or open a support ticket.

Need a server to try this on?

Cloud VPS plans start at ₹899 a month, with full root access.