This tutorial will guide you through the process of installing Poweradmin, a web-based GUI for PowerDNS, on OpenBSD. Poweradmin provides a simple and easy-to-use interface for managing DNS zones and records.
Before installing Poweradmin, you should ensure that your OpenBSD system is up-to-date by running the following command:
sudo pkg_add -u
You should also have a web server and PHP installed and configured on your system.
First, download the latest version of Poweradmin from the official website at http://www.poweradmin.org. Once you have downloaded the archive file, extract it to a directory on your system.
wget https://github.com/poweradmin/poweradmin/archive/v2.1.7.tar.gz
tar xf v2.1.7.tar.gz
Next, you need to configure your web server to serve the Poweradmin files. Create a new virtual host or edit an existing one and add the following configuration directives:
DocumentRoot "/path/to/poweradmin"
<Directory "/path/to/poweradmin">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
Make sure to replace /path/to/poweradmin
with the actual path to your Poweradmin installation directory.
Navigate to the Poweradmin installation directory and copy the config.inc.php-sample
file to config.inc.php
. Then, edit the config.inc.php
file to specify your database configuration and other settings.
cd poweradmin-2.1.7/inc
cp config.inc.php-sample config.inc.php
nano config.inc.php
Ensure the database settings in this file are pointing to a MySQL or MariaDB server and that the default administrator account has been changed.
Login to your desired host running MySQL/MariaDB and create a new database for Poweradmin.
mysql -u root -p
create database poweradmin;
Create a user and grant privileges to access this newly created database.
CREATE USER 'db_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON `poweradmin`.* TO 'db_user'@'localhost';
FLUSH PRIVILEGES;
Populate the DNS tables for Poweradmin from the fresh SQL structure located on poweradmin-2.1.7/inc/schema/dns_powerdns_mysql.sql using the 'mysql' command.
mysql -u db_user -p poweradmin < /path/to/poweradmin-2.1.7/inc/schema/dns_powerdns_mysql.sql
In most cases, Poweradmin will look for its configurations under /usr/local/www/poweradmin or /var/www/poweradmin, ensure that you have moved your extracted "poweradmin-2.1.7" to your designated web directory.
$ sudo mv poweradmin /usr/local/www/
You should now be able to access Poweradmin by navigating to http://your-domain.com/poweradmin
. You will be prompted to log in with the administrator account specified in the config.inc.php
file during step 3.
You have successfully installed Poweradmin on OpenBSD. You can use Poweradmin to manage your DNS zones and records through a web-based interface. You can also create new users and assign them different levels of access to the DNS management functions.
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!