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
- Connect to your VPS with SSH to run the commands above.
- Secure your new VPS before you put real data on it.
- Something not working? See what happens after you order an app, or open a ticket from Support.