How to Install Poweradmin on Debian Latest

Poweradmin is a web-based administration tool for PowerDNS, a DNS server software. In this tutorial, we will guide you on how to install Poweradmin on Debian Latest.

Prerequisites

Before starting the installation process, make sure to have the following prerequisites on your system:

Step 1: Update System Packages

First, ensure that all the packages on your system are up to date by running the following command:

sudo apt update && sudo apt upgrade

Step 2: Install Required Packages

Install all the necessary packages required for Poweradmin by running the command below:

sudo apt install apache2 php7.4 php7.4-mysql php7.4-gd mysql-server

Step 3: Set Up MySQL Database

Create a MySQL database and user for Poweradmin.

Start by logging in to the MySQL server:

sudo mysql

Now, create the database:

CREATE DATABASE poweradmin;

Create a user account and grant access to the database:

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

Replace "poweradminuser" with your desired username and "password" with your desired password.

Step 4: Install Poweradmin

Start by downloading the latest Poweradmin release from the official website:

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

Extract the downloaded archive:

tar -xzf v2.1.7.tar.gz

Rename the extracted directory:

mv poweradmin-2.1.7 poweradmin

Copy the Poweradmin files to the web server directory:

For Apache web server:

sudo cp -r poweradmin /var/www/html/

For Nginx web server:

sudo cp -r poweradmin /usr/share/nginx/html/

Change the ownership and permissions of the Poweradmin directory:

sudo chown -R www-data:www-data /var/www/html/poweradmin
sudo chmod -R 755 /var/www/html/poweradmin

Step 5: Configure Poweradmin

Navigate to the Poweradmin directory:

cd /var/www/html/poweradmin

Copy the config file:

cp inc/config-me.inc.php inc/config.inc.php

Edit the config file:

nano inc/config.inc.php

Update the following values to match your environment:

$db_host = 'localhost';
$db_user = 'poweradminuser';
$db_pass = 'password';
$db_name = 'poweradmin';

Replace "poweradminuser" with the MySQL user and "password" with the MySQL user password created in step 3.

Save and close the file.

Step 6: Access Poweradmin

Poweradmin can now be accessed via a web browser by navigating to the following URL:

http://<your-IP>/poweradmin/

Replace "" with your server's IP address.

Conclusion

You have successfully installed and configured Poweradmin on Debian Latest. You can now use Poweradmin to manage your PowerDNS server. Enjoy!

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!