Poweradmin is an open-source web-based tool used for managing DNS servers. In this tutorial, we will guide you through the process of installing Poweradmin on macOS.
You can download the latest version of Poweradmin from the official website http://www.poweradmin.org/download/. Once the download is complete, extract the Poweradmin archive file.
Launch the MySQL or MariaDB command line interface and log in as the root user:
mysql -u root -p
Create a new database by running the following command:
create database poweradmin;
Create a new user and grant all privileges on the poweradmin database:
grant all privileges on poweradmin.* to 'poweradminuser'@'localhost' identified by 'password';
Flush the privileges by running the following command:
flush privileges;
Copy the "inc.config.php.example" file to "inc.config.php" by running the following command:
cd poweradmin-x.y.z
cp inc.config.php.example inc.config.php
Edit the "inc.config.php" file and modify the following parameters:
$db_host
- Set this to the hostname or IP address of your MySQL or MariaDB server$db_user
- Set this to the username you created in the previous step$db_pass
- Set this to the password you set for the database user$db_name
- Set this to the name of the database you created in the previous stepCreate a new virtual host for Poweradmin. For Apache, create a new file at /etc/apache2/sites-available/poweradmin.conf with the following contents:
<VirtualHost *:80>
ServerName poweradmin.example.com
DocumentRoot /path/to/poweradmin-x.y.z
<Directory /path/to/poweradmin-x.y.z>
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
For Nginx, create a new file at /etc/nginx/sites-available/poweradmin.conf with the following contents:
server {
listen 80;
server_name poweradmin.example.com;
root /path/to/poweradmin-x.y.z;
index index.php;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
Replace poweradmin.example.com
with the domain name you want to use for Poweradmin, and /path/to/poweradmin-x.y.z
with the path to the extracted Poweradmin directory.
Enable the virtual host by running the following command:
sudo a2ensite poweradmin.conf # for Apache
sudo ln -s /etc/nginx/sites-available/poweradmin.conf /etc/nginx/sites-enabled/ # for Nginx
sudo service apache2 reload # for Apache
sudo service nginx reload # for Nginx
Open your web browser and navigate to the Poweradmin URL, http://poweradmin.example.com, where poweradmin.example.com
is the domain name you used in the previous step.
You will be prompted to enter a username and password. The default username and password are admin
and password
, respectively.
Once you have successfully logged in, you can start managing your DNS servers using Poweradmin.
Congratulations! You have successfully installed Poweradmin on macOS.
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!