How to Install Poweradmin on Alpine Linux Latest

Poweradmin is a free and open-source web-based DNS management tool that allows you to manage your DNS records from a web interface. In this tutorial, we will show you how to install Poweradmin on Alpine Linux Latest.

Prerequisites

Before we begin, make sure you have the following:

Step 1: Install LAMP Stack

Poweradmin relies on a LAMP stack to function. The LAMP stack consists of Apache, MySQL or MariaDB, and PHP.

Run the following command to install the LAMP stack:

apk update
apk add apache2 apache2-utils php7-apache2 php7-mysqli php7-pdo_mysql mariadb mariadb-client php7 php7-common php7-mcrypt php7-curl php7-gd php7-json php7-zip php7-xmlreader php7-openssl php7-fileinfo

After the installation, start Apache and MariaDB services:

rc-service apache2 start
rc-service mariadb start

To make sure that Apache and MariaDB are started during the system boot time, run the following:

rc-update add apache2 default
rc-update add mariadb default

Step 2: Create MySQL Database and User

Next, we will create a database and user for Poweradmin.

Log in to the MySQL/MariaDB shell:

mysql -u root -p

Create a new database:

CREATE DATABASE poweradmin;

Create a new user and grant it privileges to the newly created database:

GRANT ALL PRIVILEGES ON poweradmin.* TO 'poweradmin_user'@'localhost' IDENTIFIED BY 'your_password_here';
FLUSH PRIVILEGES;

Exit from the MySQL/MariaDB shell:

exit;

Step 3: Download and Install Poweradmin

We will download Poweradmin from their official website using the following command:

wget https://github.com/poweradmin/poweradmin/archive/v2.1.7.tar.gz

Extract the downloaded archive:

tar -xvf v2.1.7.tar.gz

Navigate to the extracted directory:

cd poweradmin-2.1.7

Copy the poweradmin folder to the Apache root directory:

cp -r poweradmin /var/www/localhost/htdocs/

Set the appropriate permissions:

chown -R apache:apache /var/www/localhost/htdocs/poweradmin

Step 4: Configure Poweradmin

Copy the sample configuration file:

cp /var/www/localhost/htdocs/poweradmin/inc/config-me.inc.php /var/www/localhost/htdocs/poweradmin/inc/config.inc.php

Edit the configuration file:

nano /var/www/localhost/htdocs/poweradmin/inc/config.inc.php

Find the following sections and set the respective values:

$db_host = 'localhost';
$db_user = 'poweradmin_user';
$db_pass = 'your_password_here';
$db_name = 'poweradmin';
$pdns_host = 'localhost';
$pdns_port = '53';
$pdns_key_name = '';
$pdns_key = '';

Save and close the file.

Restart Apache:

rc-service apache2 restart

Step 5: Access Poweradmin

Open a web browser and navigate to http://your_server_ip/poweradmin/. The Poweradmin login page will appear.

Log in with the following credentials:

Upon logging in, you can start adding, editing, and removing DNS records.

Conclusion

In this tutorial, we have shown you how to install Poweradmin on Alpine Linux Latest. With Poweradmin installed, you can easily manage your DNS records from a web interface.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!