How to Install Poweradmin on Elementary OS Latest

Poweradmin is a web-based tool used for managing DNS servers. In this tutorial, we will guide you through the steps to install Poweradmin on Elementary OS Latest.

Prerequisites

Before you start, make sure you have the following installed on your system:

Step 1: Install Required Packages

First, update your system using the following command:

sudo apt update
sudo apt upgrade

Next, install the required packages:

sudo apt install apache2 mysql-server php php-gd php-mysqli php-mbstring php-gettext

Step 2: Download Poweradmin

Download the latest version of Poweradmin from the official website:

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

Extract the downloaded archive:

tar -xvf v2.1.7.tar.gz

Move the extracted directory to the Apache web root directory:

sudo mv poweradmin-2.1.7 /var/www/html/poweradmin

Step 3: Create MySQL Database and User

Log in to MySQL using the following command:

sudo mysql -u root -p

Create a new database for Poweradmin:

CREATE DATABASE poweradmin;

Create a new user and grant necessary privileges:

CREATE USER 'poweradmin'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON poweradmin.* TO 'poweradmin'@'localhost';
FLUSH PRIVILEGES;

Replace password with a strong password of your choice.

Step 4: Configure Poweradmin

Copy the sample configuration file:

cd /var/www/html/poweradmin/inc/
cp config-me.inc.php config.inc.php

Edit the config.inc.php file and change the following lines:

$pdns_host = 'localhost';
$pdns_port = '3306';
$pdns_user = 'poweradmin';
$pdns_password = 'password';
$pdns_database = 'poweradmin';

Replace password with the password you set in Step 3.

Step 5: Configure Apache

Create a new Apache virtual host file for Poweradmin:

sudo nano /etc/apache2/sites-available/poweradmin.conf

Add the following content to the file:

<VirtualHost *:80>
    ServerName your_domain.com
    ServerAdmin webmaster@your_domain.com
    DocumentRoot /var/www/html/poweradmin

    <Directory "/var/www/html/poweradmin">
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Replace your_domain.com with your actual domain name.

Enable the new virtual host and restart Apache:

sudo a2ensite poweradmin.conf
sudo systemctl restart apache2

Step 6: Set Up Poweradmin

Open your web browser and go to http://your_domain.com/poweradmin. You should see the Poweradmin login page.

Log in with the default username admin and password poweradmin.

Go to System -> Settings and check if the paths to the PDNS and zone files are correct.

Create your DNS zones and manage them as needed.

Congratulations! You have successfully installed and configured Poweradmin on Elementary OS Latest.

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!