Docs
Search
K

Using the LEMP-Stack

Use the LEMP-Stack template to quickly spin up antlets that host your web-projects. The LEMP Stack features the following software, already installed and pre-configured:
  • Debian 11
  • Nginx 1.20.2
  • MariaDB (MySQL) v10.5.12
  • PHP 7.4.25
For easy database management, we pre-installed phpMyAdmin.

1. Create the antlet

First things first. Create a new antlet based on the LEMP-Stack template. If you do not know how to create antlets yet, please check out this article.

2. Set up access

To make sure your antlet and the site running on it is reachable, you will need to configure access. We recommend three different ways to do it. Choose the one that suits your needs best.
Using a domain
Using Port Forwarding
Using a bridged NIC
This is particurlarly helpful if you already have a domain that points to your edgeLinux server. Let's assume example.com is configured to point to your server. In that case, we want to create a subdomain, like myantlet.example.com that directly points to the antlet on your edgeLinux server. For that, we use the reverse proxy features in nginx. You can find detailed set-up instructions here
In this scenario, we access the address of our edgeLinux server, but specify a port that gets redirected to port 80 on the antlet. This is especially easy and quick to setup, and sufficient for most testing / developing scenarios. Once configured your can access the antlet at <your-server-address>:XXXX where XXXX is a custom port of your choosing. You can find detailed instructions on how to setup port forwarding here
Configure a bridged network interface, to expose your antlet to your local network. By doing this, your antlet gets another IP address in the same network that your edgeLinux server is in (in addition to the 10.1.1.X address.) This method gives you full access to the antlet from your local network. You can find detailed instruction on how to configure a bridged NIC here

3. Build your site

To get you started as fast as possible, we already pre-configured the antlet for you. When accessing the antlet with the method you configured, you see the php-info screen by default.
If you have a static website you would like to serve, place it in the /usr/share/nginx/html directory. PHP files are automatically run. Checkout the default index.php for more info.

Using MariaDB and phpMyAdmin

The template comes with phpMyAdmin pre-installed. Navigate to the phpMyAdmin login screen by appending /phpmyadmin to your antlet's address (depending on the connection method you configured)
You can use it for creating, editing and deleting databases and their contents. By default, the database user is root and the password antsle. Use these credentials to authenticate with both phpMyAdmin and MariaDB (MySQL)
Database Credentials
User
root
Password
antsle
Hostname
localhost
Port
3306
Once logged in, click the New button in the sidebar to create a new databse. Choose a name and hit Create
Create new Database
Congrats, you can now use your created database with your website! 🎉
Note: For anything other than local testing / developing we strongly recommend you change all default passwords!