Error installing Cyberpanel: pdns.service failed

I installed CyberPanel from the new centos, but bug with pdns.service
Please help me, thank you.

[10-33-22-Sat-May-2018] #########################################################################

[10-33-22-Sat-May-2018] PowerDNS successfully installed!

[10-33-22-Sat-May-2018] #########################################################################

[10-33-22-Sat-May-2018] #########################################################################

[10-33-22-Sat-May-2018] Configuring PowerDNS…

[10-33-22-Sat-May-2018] #########################################################################

[10-33-22-Sat-May-2018] #########################################################################

[10-33-22-Sat-May-2018] PowerDNS configured!

[10-33-22-Sat-May-2018] #########################################################################

Created symlink from /etc/systemd/system/multi-user.target.wants/pdns.service to /usr/lib/systemd/system/pdns.service.

[10-33-24-Sat-May-2018] #########################################################################

[10-33-24-Sat-May-2018] PowerDNS successfully enabled at system restart!

[10-33-24-Sat-May-2018] #########################################################################

Job for pdns.service failed because the control process exited with error code. See “systemctl status pdns.service” and “journalctl -xe” for details.

[10-33-25-Sat-May-2018] #########################################################################

[10-33-25-Sat-May-2018] Trying to start PowerDNS instance, trying again, try number: 2

[10-33-25-Sat-May-2018] #########################################################################

Job for pdns.service failed because the control process exited with error code. See “systemctl status pdns.service” and “journalctl -xe” for details.

[10-33-27-Sat-May-2018] #########################################################################

[10-33-27-Sat-May-2018] Trying to start PowerDNS instance, trying again, try number: 3

[10-33-27-Sat-May-2018] #########################################################################

[10-33-27-Sat-May-2018] #########################################################################

[10-33-27-Sat-May-2018] Installation failed, consult: /var/log/installLogs.txt

[10-33-27-Sat-May-2018] #########################################################################

[root@localhost install]# systemctl status pdns.service
● pdns.service - PowerDNS Authoritative Server
Loaded: loaded (/usr/lib/systemd/system/pdns.service; enabled; vendor preset: disabled)
Active: activating (start) since Sat 2018-05-12 22:36:14 +07; 129ms ago
Docs: man:pdns_server(1)
man:pdns_control(1)
https://doc.powerdns.com
Main PID: 5313 (pdns_server)
Tasks: 1
CGroup: /system.slice/pdns.service
└─5313 /usr/sbin/pdns_server --guardian=no --daemon=no --disable-syslog --log-timestamp=no --write…

May 12 22:36:14 localhost.localdomain systemd[1]: pdns.service holdoff time over, scheduling restart.
May 12 22:36:14 localhost.localdomain systemd[1]: Starting PowerDNS Authoritative Server…
[root@localhost install]# journalctl -xe
May 12 22:37:00 localhost.localdomain systemd[1]: pdns.service: main process exited, code=exited, status=1/FAILU
May 12 22:37:00 localhost.localdomain systemd[1]: Failed to start PowerDNS Authoritative Server.
– Subject: Unit pdns.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit pdns.service has failed.

– The result is failed.
May 12 22:37:00 localhost.localdomain systemd[1]: Unit pdns.service entered failed state.
May 12 22:37:00 localhost.localdomain systemd[1]: pdns.service failed.
May 12 22:37:01 localhost.localdomain systemd[1]: pdns.service holdoff time over, scheduling restart.
May 12 22:37:01 localhost.localdomain systemd[1]: Starting PowerDNS Authoritative Server…
– Subject: Unit pdns.service has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit pdns.service has begun starting up.
May 12 22:37:01 localhost.localdomain pdns_server[5440]: Loading ‘/usr/lib64/pdns/libgmysqlbackend.so’
May 12 22:37:01 localhost.localdomain pdns_server[5440]: This is a standalone pdns
May 12 22:37:01 localhost.localdomain pdns_server[5440]: Listening on controlsocket in '/var/run/pdns.controlsoc
May 12 22:37:01 localhost.localdomain pdns_server[5440]: Unable to bind UDP socket to ‘0.0.0.0:53’: Address alre
May 12 22:37:01 localhost.localdomain pdns_server[5440]: Fatal error: Unable to bind to UDP socket
May 12 22:37:01 localhost.localdomain systemd[1]: pdns.service: main process exited, code=exited, status=1/FAILU
May 12 22:37:01 localhost.localdomain systemd[1]: Failed to start PowerDNS Authoritative Server.
– Subject: Unit pdns.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit pdns.service has failed.

– The result is failed.
May 12 22:37:01 localhost.localdomain systemd[1]: Unit pdns.service entered failed state.
May 12 22:37:01 localhost.localdomain systemd[1]: pdns.service failed.

What virtualization is this?

Oracle VM VitrualBox
CentOS 7

Thank you.

Behind NAT?

I have not done anything with my modem, I’m installing cyberpanel on my virtual machine.
What should I do to know it?
Thank you.

You need to get your self KVM or OpenVZ it will not work on localhost.

How can I successfully install it on a virtual machine? Do you have documentation to fully guide this?

@xuandungpy did you fixed this issue? If yes then please comment how you did it. I am stuck at this same issue :disappointed:

I have seen the installation instructions here: 01 - Installing CyberPanel - Docs - CyberPanel Community
With only 3 lines of code you can install it:
yum install epel-release -y
yum clean all && yum update -y
sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)