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:
MariaDB (MySQL) v10.4
For easy database management, we pre-installed phpMyAdmin.
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.
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. 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
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
/var/www/html/ directory. PHP files are automatically run. Checkout the default
index.php for more info.
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)
Once logged in, click the
New button in the sidebar to create a new databse. Choose a name and hit
Congrats, you can now use your created database with your website! 🎉