110Troubleshoots - amagerard/Powerdns GitHub Wiki
| 1- Network | 2- Pdns | 3- Mariadb | 4- PowerAdmin | 5- PdnsRecursor | 6- Selinux | 
|---|---|---|---|---|---|
| 7- GnomeShell | 8-Synoptic | 09-ManageDns | 10-Troubleshoots | 
Installation from the RedHat 10 template.
Pdns-recursor does not exist in the epel10 repositories.
Pdns-recursor 5.3 is an unfinished version.
If you want to import your database from RedHat 9 to RedHat 10,Poweradmin 4.0.1,
please first migrate Poweradmin 3.9 to 4.0.1 RedHat 9.
This follows a preceding installation with a  VM Template RedHat 9.5
The procedure allows you to update:
- Redhat 9.5 to 9.6
- Mariadb 11.5.2 to 12.0.2
- pdns 4.8.4 to 4.8.4-1
- pdns-recursor 4.8.9.1
- PHP 8.3.11 to 8.4.12
- Poweradmin 3.8.1 to 4.0.1
Warnings
You absolutely must back up your database.
The best thing to do is to back up your VM.
The new version of PowerAdmin 4.0.1 requires database modifications.
systemctl disable mariadb  
systemctl disable pdns  
systemctl disable pdns-recursor  
systemctl disable php-fpm  
systemctl disable nginx  
vi /etc/crontab
@reboot root setenforce 0  
vi /etc/resolv.conf
name server  1.1.1.1 
dnf remove MariaDB-server
dnf remove php-common php-pdo php-cli php-fpm php-mbstring php-opcache php-xml php  php-mysqlnd php-gd php-intl
mv /var/www/html/poweradmin /var/www/html/poweradmin_old
Before removing old kernel.
 rpm -qa | grep kernel-core
Purge old packages.
dnf clean all
Check your subscription.
subscription-manager list
Update Redhat.
dnf update
Restart DNS1.
reboot
vi /etc/resolv.conf
name server  1.1.1.1 
curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup |  bash
dnf update
dnf install MariaDB-server
systemctl start mariadb
mariadb-upgrade -u  root -p
All is "OK".
Change 1.1.1.1  to <IP DNS1>
vi /etc/resolv.conf
name server <IP DNS1> 
systemctl start pdns
View status pdns.
systemctl status pdns
Open another terminal console.
journalctl -f 
Show any errors.
Ckeck  zone.
pdnsutil list-zone ol26modk.com
systemctl start pdns-recursor
View by nslookup.
nslookup dns1.ol26modk.com
nslookup google.com
PHP installation from the remi repository.
dnf install http://fr2.rpmfind.net/linux/remi/enterprise/remi-release-9.5.rpm
Choose php version 8.4
PHP module flow reset.
dnf module reset php
Enable PHP module stream: REMI-8.4.
dnf module enable php:remi-8.4
Install php packages.
dnf install php-common php-pdo php-cli php-fpm php-mbstring php-opcache php-xml php  php-mysqlnd php-gd php-intl
Start the php-fpm service.
systemctl start php-fpm
- You must do :
 Change apache by nginx .
vi /etc/php-fpm.d/www.conf
user : nginx  
group : nginx  
cd /var/lib/php
chgrp -R nginx opcache
chgrp -R nginx  session
chgrp -R nginx wsdlcache
systemctl restart php-fpm
systemctl restart nginx
cd /opt
wget https://github.com/poweradmin/poweradmin/archive/refs/tags/v4.0.1.tar.gz
tar xvzf v4.0.1.tar.gz
cp -R /opt/poweradmin-4.0.1 /var/www/html/
mv /var/www/html/poweradmin-4.0.1 /var/www/html/poweradmin
chown -R nginx:nginx /var/www/html/poweradmin
Move file install.
mv /var/www/html/poweradmin/install /var/www/html/poweradmin/backup
Copy your config.inc.php old version poweradmin.
mkdir /var/www/html/poweradmin/inc
cp /var/www/html/poweradmin_old/inc/config.inc.php  /var/www/html/poweradmin/inc/config.inc.php
chown -R nginx:nginx /var/www/html/poweradmin/
Create a new config/settings.php file.
cd /var/www/html/poweradmin
php config/migrate-config.php
Update the database.
cd /var/www/html/poweradmin
mariadb -u root -p powerdns < sql/poweradmin-mysql-update-to-3.9.0.sql
mariadb -u root -p powerdns < sql/poweradmin-mysql-update-to-4.0.0.sql
Updates can also be found from.
https://github.com/poweradmin/poweradmin/blob/master/sql/
systemctl restart mariadb
systemctl restart php
systemctl restart nginx
https://<ip DNS1>/poweradmin/
You should log in with your user account and see your domain.
vi /etc/crontab
#@reboot root setenforce 0
Verify that setroubleshoot is present.
rpm -qa| grep setroubleshoot
If not present, it will have to be installed.
dnf install setroubleshoot
reboot
Check in the log if selinux does not block a service.
systemctl enable --now mariadb  
systemctl enable --now pdns  
systemctl enable --now pdns-recursor  
systemctl enable --now nginx  
systemctl enable --now php-fpm  
rm -rf /var/www/html/poweradmin_old
January 26, 2025.
I did a clean install again.
And restore the powerdns database from Almalinux.
I have not tested the powerdns  migration from Redhat 9.4 to 9.5.
I think it is the same procedure as with Almalinux.
This follows a preceding installation with a  VM Template Alamlinux 9.3
The procedure allows you to update:
- Almalinux 9.3 to 9.4
- Mariadb 11.2.2 to 11.5.2
- pdns 4.8 to 4.8.4
- PHP 8.3 to 8.3.11
- Poweradmin 3.6.1 to 3.8.1
systemctl disable mariadb  
systemctl disable pdns  
systemctl disable pdns-recursor  
systemctl disable php-fpm  
systemctl disable nginx  
vi /etc/crontab
@reboot root setenforce 0
reboot
vi /etc/resolv.conf
name server  1.1.1.1 
dnf remove MariaDB-server
dnf remove php-common php-pdo php-cli php-fpm php-mbstring php-opcache php-xml php  php-mysqlnd php-gd php-intl
mv /var/www/html/poweradmin /var/www/html/poweradmin_old
curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup |  bash
dnf update
It is possible to have to remove iptables-legacy.
dnf install MariaDB-server
systemctl start mariadb
mariadb-upgrade -u  root -p
All is "OK".
Change 1.1.1.1  to <IP DNS1>
vi /etc/resolv.conf
name server <IP DNS1> 
systemctl start pdns
View status pdns.
systemctl status pdns
Open another terminal console.
journalctl -f 
Show any errors.
Ckeck  zone.
pdnsutil list-zone ol26modk.com
systemctl start pdns-recursor
View by nslookup.
nslookup dns1.ol26modk.com
nslookup google.com
PHP installation from the remi repository.
dnf install http://fr2.rpmfind.net/linux/remi/enterprise/remi-release-9.2.rpm
Choose php version 8.3
PHP module flow reset.
dnf module reset php
Enable PHP module stream: REMI-8.3.
dnf module enable php:remi-8.3
Install php packages.
dnf install php-common php-pdo php-cli php-fpm php-mbstring php-opcache php-xml php  php-mysqlnd php-gd php-intl
Start the php-fpm service.
systemctl start php-fpm
- You must do :
 Change apache by nginx .
vi /etc/php-fpm.d/www.conf
user : nginx  
group : nginx  
cd /var/lib/php
chgrp -R nginx opcache
chgrp -R nginx  session
chgrp -R nginx wsdlcache
systemctl restart php-fpm
systemctl restart php-fpm
systemctl restart nginx
cd /opt
wget https://github.com/poweradmin/poweradmin/archive/refs/tags/v3.8.1.tar.gz
tar xvzf v3.8.1.tar.gz
cp -R /opt/poweradmin-3.8.1 /var/www/html/
mv /var/www/html/poweradmin-3.8.1 /var/www/html/poweradmin
chown -R nginx:nginx /var/www/html/poweradmin
Move file install.
mv /var/www/html/poweradmin/install /var/www/html/poweradmin/backup
Copy your config.inc.php old version poweradmin.
mv /var/www/html/poweradmin_old/inc/config.inc.php  /var/www/html/poweradmin/inc/config.inc.php
chown nginx:nginx /var/www/html/poweradmin/inc/config.inc.php
systemctl start nginx
https://<ip DNS1>/poweradmin/
vi /etc/crontab
#@reboot root setenforce 0
Verify that setroubleshoot is present.
rpm -qa| grep setroubleshoot
If not present, it will have to be installed.
dnf install setroubleshoot
reboot
be careful with selinux.
Verify that setroubleshoot is present.
rpm -qa| grep setroubleshoot
If not present, it will have to be installed.
dnf install setroubleshoot
Restart the machine.
reboot ou init 6
systemctl enable --now mariadb  
systemctl enable --now pdns  
systemctl enable --now pdns-recursor  
systemctl enable --now nginx  
systemctl enable --now php-fpm  
- You must do :
 Change apache by nginx .
vi /etc/php-fpm.d/www.conf
user : nginx  
group : nginx  
cd /var/lib/php
chgrp -R nginx opcache
chgrp -R nginx  session
chgrp -R nginx wsdlcache
systemctl restart php-fpm
systemctl restart php-fpm
systemctl restart nginx
This follows a preceding installation with a
VM Template Alamlinux 9.2
The procedure allows you to update:
- Almalinux 9.2 to 9.3
- Mariadb 11.0.2 to 11.2.2
- pdns 4.7 to 4.8
- PHP 8.2 to 8.3
- Poweradmin 3.5.1 to 3.6.1
systemctl disable mariadb  
systemctl disable pdns  
systemctl disable pdns-recursor  
systemctl disable php-fpm  
systemctl disable httpd  
vi /etc/crontab
@reboot root setenforce 0
reboot
vi /etc/resolv.conf
name server  1.1.1.1 
dnf remove MariaDB-server
dnf remove php-common php-pdo php-cli php-fpm php-mbstring php-opcache php-xml php  php-mysqlnd php-gd php-intl
mv /var/www/html/poweradmin /var/www/html/poweradmin_old
curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup |  bash
dnf update
mv /etc/httpd/conf.d/ssl.conf  /etc/httpd/sites-available/ssl.conf_ori
dnf install MariaDB-server
systemctl start mariadb
Only you have old pdns 4.6.
mariadb -u root -p
MariaDB [(none)]> use powerdns;  
MariaDB [powerdns]>  
ALTER TABLE domains ADD options VARCHAR(64000) DEFAULT NULL;  
ALTER TABLE domains ADD catalog VARCHAR(255) DEFAULT NULL;  
ALTER TABLE domains MODIFY type VARCHAR(8) NOT NULL;  
CREATE INDEX catalog_idx ON domains(catalog);  
FLUSH PRIVILEGES;  
exit  
mariadb-upgrade -u  root -p
All is "OK".
Change 1.1.1.1  to <IP DNS1>
vi /etc/resolv.conf
name server <IP DNS1> 
systemctl start pdns
View status pdns.
systemctl status pdns
Open another terminal console.
journalctl -f 
Show any errors.
Ckeck  zone.
pdnsutil list-zone ol26modk.com
systemctl start pdns-recursor
View by nslookup.
nslookup dns1.ol26modk.com
nslookup google.com
PHP installation from the remi repository.
dnf install http://fr2.rpmfind.net/linux/remi/enterprise/remi-release-9.2.rpm
Choose php version 8.3
PHP module flow reset.
dnf module reset php
Enable PHP module stream: REMI-8.3.
dnf module enable php:remi-8.3
Install php packages.
dnf install php-common php-pdo php-cli php-fpm php-mbstring php-opcache php-xml php  php-mysqlnd php-gd php-intl
Start the php-fpm service.
systemctl start php-fpm
cd /opt
wget https://github.com/poweradmin/poweradmin/archive/refs/tags/v3.6.1.tar.gz
tar xvzf v3.6.1.tar.gz
cp -R /opt/poweradmin-3.6.1 /var/www/html/
mv /var/www/html/poweradmin-3.6.1 /var/www/html/poweradmin
chown -R apache:apache /var/www/html/poweradmin
Move file install.
mv /var/www/html/poweradmin/install /var/www/html/poweradmin/backup
Copy your config.inc.php old version poweradmin.
mv /var/www/html/poweradmin_old/inc/config.inc.php  /var/www/html/poweradmin/inc/config.inc.php
chown apache:apache /var/www/html/poweradmin/inc/config.inc.php
systemctl start httpd
https://<ip DNS1>/poweradmin/
vi /etc/crontab
#@reboot root setenforce 0
Verify that setroubleshoot is present.
rpm -qa| grep setroubleshoot
If not present, it will have to be installed.
dnf install setroubleshoot
reboot
be careful with selinux.
Verify that setroubleshoot is present.
rpm -qa| grep setroubleshoot
If not present, it will have to be installed.
dnf install setroubleshoot
Restart the machine.
reboot ou init 6
systemctl enable --now mariadb  
systemctl enable --now pdns  
systemctl enable --now pdns-recursor  
systemctl enable --now httpd  
systemctl enable --now php-fpm