10Update - amagerard/PowerDNS GitHub Wiki
1- Network | 2- Pdns | 3- Mariadb | 4- PowerAdmin | 5- PdnsRecursor | 6- Selinux |
---|---|---|---|---|---|
7- GnomeShell | 8-Synoptic | 09-ManageDns | 10-Update |
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
1- Network | 2- Pdns | 3- Mariadb | 4- PowerAdmin | 5- PdnsRecursor | 6- Selinux |
---|---|---|---|---|---|
7- GnomeShell | 8-Synoptic | 09-ManageDns | 10-Update |
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
1- Network | 2- Pdns | 3- Mariadb | 4- PowerAdmin | 5- PdnsRecursor | 6- Selinux |
---|---|---|---|---|---|
7- GnomeShell | 8-Synoptic | 09-ManageDns | 10-Update |
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
1- Network | 2- Pdns | 3- Mariadb | 4- PowerAdmin | 5- PdnsRecursor | 6- Selinux |
---|---|---|---|---|---|
7- GnomeShell | 8-Synoptic | 09-ManageDns | 10-Update |
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
1- Network | 2- Pdns | 3- Mariadb | 4- PowerAdmin | 5- PdnsRecursor | 6- Selinux |
---|---|---|---|---|---|
7- GnomeShell | 8-Synoptic | 09-ManageDns | 10-Update |
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