Docs
  • Home
  • Antsle One Setup
  • Antsle Nano Setup
  • Antsle Two Setup
  • Get Started
    • edgeLinux Installation
      • Installing edgeLinux on Oracle VirtualBox
    • Log in to the edgeLinux OS
    • Name Your Antsle/Nano
    • Setting Up Your Tech Stack
      • WordPress
      • Gitlab
      • Jenkins
  • Antlets
    • Antlets Overview
    • Create and Manage an Antlet
    • Antlet Details
    • Access Antlets
    • Virtual Drives
    • Backing Up Antlets
      • Self-Managed Restoration (Beta)
  • Templates
    • Templates Overview
    • Install OS from .iso
    • Import VM Images
    • Using the LEMP-Stack
    • Using Nextcloud
    • Using OPNsense
  • Networking
    • Networking Overview
    • Configure IP Addresses
    • Bridged Networking / Virtual NIC
    • Wifi on the Antsle Nano
    • Port Forwarding
    • Load Balancing
    • SDN: Software Defined Networking
  • System
    • Antsle Distributed Storage - ADS
    • Multi-Node
    • Secure (HTTPS) Access to Antman
    • Secure FTP (SFTP) Access
    • USB Drives
    • Docker Support
    • LDAP/SSO
    • antMan REST API
    • The antMan Terraform Provider
    • Access Your HDD (or SSD) Add-on
    • Setting Up Shared Storage Volume
    • edgeLinux OS
    • Windows License
  • antHill and Account Management
  • Troubleshooting
    • Reset edgeLinux on a Pi or Antsle Nano
    • Known Issues
  • FAQs
  • Protector Mode
Powered by GitBook
On this page
  • 1. Create the antlet
  • 2. Set up access
  • 3. Build your site

Was this helpful?

  1. Templates

Using the LEMP-Stack

PreviousImport VM ImagesNextUsing Nextcloud

Last updated 3 years ago

Was this helpful?

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 .

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.

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.

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.

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.

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

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!

this article
You can find detailed set-up instructions here
You can find detailed instructions on how to setup port forwarding here
You can find detailed instruction on how to configure a bridged NIC here
Create new Database