Dukecitysolutions / sentora-php7-upgrade

Sentora v1.0.3 PHP 7.x Upgrade
GNU General Public License v3.0
17 stars 11 forks source link

DNS services #8

Closed digifelis closed 4 years ago

digifelis commented 4 years ago

After update, sentora DNS services aren't working. in fact, ı have checked service on sentora panel and it is working. then ı have checked the listening port and it is OK. problem isn't from apache.

Operating System: Ubuntu 16.04.6 LTS Php : 7.3

Dukecitysolutions commented 4 years ago

Thank you for opening a new ticket for this. I am looking into this as we speak.

Dukecitysolutions commented 4 years ago

Digifeilis, I found issue with Bind in Ubuntu 16 setup. Appmor was configured wrong & bind managed-keys. Steps below to fix by hand-

git clone https://github.com/Dukecitysolutions/sentora-php7-upgrade sentora_php7_upgrade

rm -rf /etc/apparmor.d/usr.sbin.named

cp -r ~/sentora_php7_upgrade/preconf/apparmor.d/usr.sbin.named /etc/apparmor.d/

sed -i '\~dnssec-lookaside auto;~a managed-keys-directory "/var/named/dynamic";' /etc/bind/named.conf - ONE LINE

rm -rf /var/named/dynamic/managed-keys.bind

systemctl restart bind9

and reboot system

or

bash <(curl -L -Ss http://zppy-repo.dukecitysolutions.com/repo/sentora-live/php7_upgrade/update.sh)

That should fix it!!!

digifelis commented 4 years ago

hi, I ran update.sh and it was worked for me. thanks.

Dukecitysolutions commented 4 years ago

Your very welcome. Thank you for your help testing.