Author Topic: Php errros in CWP panel  (Read 91300 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
Re: Php errros in CWP panel
« Reply #15 on: July 17, 2018, 04:12:11 PM »
What is output of

Code: [Select]
yum list installed | grep bind
And

Code: [Select]
serivce named restart

Offline
*
Re: Php errros in CWP panel
« Reply #16 on: July 17, 2018, 07:58:40 PM »
a. Here are the outputs of the commands:

[root@vps196134 ~]# yum list installed | grep bind
bind.x86_64                           32:9.9.4-61.el7                  @base
bind-libs.x86_64                      32:9.9.4-61.el7                  @base
bind-libs-lite.x86_64                 32:9.9.4-61.el7                  @base
bind-license.noarch                   32:9.9.4-61.el7                  @base
bind-utils.x86_64                     32:9.9.4-61.el7                  @base

[root@vps196134 ~]# serivce named restart
-bash: serivce: command not found



b. And here the DNS config I did in CWP panel:

$TTL    38400
@       IN      SOA     ns1.mydomain.com.   admin.mydomain.com. (
                        20170922110026 ; serial
                        90M ; refresh
                        15M ; retry
                        14D ; expire
                        3600 ; default_ttl
                        )
 
mydomain.com.   14400   IN   NS   ns1.mydomain.com.
mydomain.com.   14400   IN   NS   ns2.mydomain.com.
 
ns1   14400   IN   A   xxx.xxx.xxx.xxx
ns2   14400   IN   A   xxx.xxx.xxx.xxx
 
mydomain.com.   14400   IN   A   xxx.xxx.xxx.xxx
 
localhost   14400   IN   A   127.0.0.1
 
mydomain.com.   14400   IN   MX   0   mydomain.com.
 
server   IN   A   xxx.xxx.xxx.xxx
www   IN   A   xxx.xxx.xxx.xxx
 
mydomain.com.   IN   TXT   "v=spf1 a mx ptr a:mydomain.com ip4:xxx.xxx.xxx.xxx ?all"

_adsp._domainkey.mydomain.com.   IN   TXT   "dkim=all"

_domainkey.mydomain.com.   IN   TXT   "o=~; r=abuse@mydomain.com"

_dmarc.mydomain.com.   IN   TXT   "v=DMARC1; p=quarantine; sp=r; pct=100; aspf=r; adkim=s"


default._domainkey   IN   TXT   ( "v=DKIM1; k=rsa; "
     "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCCRwGE8OCQk/skzSse3837B4/PLCtW6FfYESiyFshpKlF8bOGl7MfpKXibbTfBdur0puNmGOPhSSPxzEsnHjmYp7xHErzgYVd/Wgqp9HdyQRBfqyVJXmSbhuhjFe7zCYyrp4gZY1maDa5T6p8nIj/acuXrmgJNLOeAcbW7RjS8EQIDAQAB" )  ; ----- DKIM key default for mydomain.com
nh4rtd9f  IN CNAME www.mydomain.com.


Cheers

Offline
***
Re: Php errros in CWP panel
« Reply #17 on: July 17, 2018, 11:49:45 PM »
Sorry I miss typed Its

Code: [Select]
service named restart

Offline
*
Re: Php errros in CWP panel
« Reply #18 on: July 18, 2018, 07:03:04 AM »
Sorry there is a mistyped command above. Here is a correct one:

[root@vps196134 ~]# service named restart
Redirecting to /bin/systemctl restart named.service
Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe" for details.


Cheers

Offline
***
Re: Php errros in CWP panel
« Reply #19 on: July 18, 2018, 09:41:33 AM »
what is output of this.

systemctl status named.service

Offline
*
Re: Php errros in CWP panel
« Reply #20 on: July 18, 2018, 10:06:30 AM »
Here it is:


[root@vps196134 ~]# systemctl status named.service
● named.service - Berkeley Internet Name Domain (DNS)
   Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2018-07-18 03:02:07 EDT; 3h 3min ago
  Process: 3650 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)
  Process: 13170 ExecReload=/bin/sh -c /usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
  Process: 12029 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=0/SUCCESS)
  Process: 3660 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exited, status=1/FAILURE)
 Main PID: 12031 (code=exited, status=0/SUCCESS)

Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: zone ns2.baiagmumr5g.eu/IN: loaded serial 2013071600
Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: dns_rdata_fromtext: /var/named/baiagmumr5g.eu.db:2: near '20170922110026': out of range
Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: /var/named/baiagmumr5g.eu.db:36: file does not end with newline
Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: zone baiagmumr5g.eu/IN: loading from master file /var/named/baiagmumr5g.eu.db failed: out of range
Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: zone baiagmumr5g.eu/IN: not loaded due to errors.
Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: _default/baiagmumr5g.eu/IN: out of range
Jul 18 03:02:07 vps196134.vps.ovh.ca systemd[1]: named.service: control process exited, code=exited status=1
Jul 18 03:02:07 vps196134.vps.ovh.ca systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Jul 18 03:02:07 vps196134.vps.ovh.ca systemd[1]: Unit named.service entered failed state.
Jul 18 03:02:07 vps196134.vps.ovh.ca systemd[1]: named.service failed.



Thanks

Offline
***
Re: Php errros in CWP panel
« Reply #21 on: July 18, 2018, 11:00:35 AM »
Issue in  /var/named/baiagmumr5g.eu.db

Recreate it.

Offline
*
Re: Php errros in CWP panel
« Reply #22 on: July 18, 2018, 11:22:08 AM »
Here is the DNS record I have set in CWP panel:

$TTL    38400
@       IN      SOA     ns1.baiagmumr5g.eu.   admin.baiagmumr5g.eu. (
                        20170922110026 ; serial
                        90M ; refresh
                        15M ; retry
                        14D ; expire
                        3600 ; default_ttl
                        )
 
baiagmumr5g.eu.   14400   IN   NS   ns1.baiagmumr5g.eu.
baiagmumr5g.eu.   14400   IN   NS   ns2.baiagmumr5g.eu.
 
ns1   14400   IN   A   167.114.98.75
ns2   14400   IN   A   167.114.98.75
 
baiagmumr5g.eu.   14400   IN   A   167.114.98.75
 
localhost   14400   IN   A   127.0.0.1
 
baiagmumr5g.eu.   14400   IN   MX   0   baiagmumr5g.eu.
 
server   IN   A   167.114.98.75
www   IN   A   167.114.98.75
 
baiagmumr5g.eu.   IN   TXT   "v=spf1 a mx ptr a:baiagmumr5g.eu ip4:167.114.98.75 ?all"

_adsp._domainkey.baiagmumr5g.eu.   IN   TXT   "dkim=all"

_domainkey.baiagmumr5g.eu.   IN   TXT   "o=~; r=abuse@baiagmumr5g.eu"

_dmarc.baiagmumr5g.eu.   IN   TXT   "v=DMARC1; p=quarantine; sp=r; pct=100; aspf=r; adkim=s"


Can you please what is wrong with that?

Cheers

Offline
*
Re: Php errros in CWP panel
« Reply #23 on: July 18, 2018, 12:57:28 PM »
your serial is too long, it can be only 10 characters long
your is
20170922110026 ; serial
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: Php errros in CWP panel
« Reply #24 on: July 18, 2018, 01:04:55 PM »
thanks for your advice.

I have changed to the followings:


; Panel %version%
; Zone file for ns1.baiagmumr5g.eu
$TTL 14400
ns1.baiagmumr5g.eu.      86400      IN      SOA      ns1.baiagmumr5g.eu.      admin.baiagmumr5g.eu.      (
                  2013071600 ;serial, todays date+todays
                  86400 ;refresh, seconds
                  7200 ;retry, seconds
                  3600000 ;expire, seconds
                  86400 ;minimum, seconds
      )
 
baiagmumr5g.eu.   14400   IN   NS   ns1.baiagmumr5g.eu.
baiagmumr5g.eu.   14400   IN   NS   ns2.baiagmumr5g.eu.
 
ns1   14400   IN   A   167.114.98.75
ns2   14400   IN   A   167.114.98.75
 
baiagmumr5g.eu.   14400   IN   A   167.114.98.75
 
localhost   14400   IN   A   127.0.0.1
 
baiagmumr5g.eu.   14400   IN   MX   0   baiagmumr5g.eu.
 
server   IN   A   167.114.98.75
www   IN   A   167.114.98.75
 
baiagmumr5g.eu.   IN   TXT   "v=spf1 a mx ptr a:baiagmumr5g.eu ip4:167.114.98.75 ?all"

_adsp._domainkey.baiagmumr5g.eu.   IN   TXT   "dkim=all"

_domainkey.baiagmumr5g.eu.   IN   TXT   "o=~; r=abuse@baiagmumr5g.eu"

_dmarc.baiagmumr5g.eu.   IN   TXT   "v=DMARC1; p=quarantine; sp=r; pct=100; aspf=r; adkim=s"


But it still does not work.

Cheers

Offline
***
Re: Php errros in CWP panel
« Reply #25 on: July 18, 2018, 04:04:59 PM »
did you try rebuilding zone?

Offline
*
Re: Php errros in CWP panel
« Reply #26 on: July 18, 2018, 05:20:15 PM »
Hi,

Can you give me instruction on how to rebuild zone?

Cheers

Offline
*
Re: Php errros in CWP panel
« Reply #27 on: July 18, 2018, 05:29:33 PM »
Update: I have deleted a user I created in CWP panel to remove DNS record. And created it again to rebuild DNS records.

The issue is still the same; binding does not work.

Or I can give you SSH credentials to have a look? Do you have an email address?

Cheers

Offline
*
Re: Php errros in CWP panel
« Reply #28 on: July 18, 2018, 10:40:46 PM »
try to check info about the error

service named status

if the is no error info then you can check for bind error in the /var/log/messages file

example
Code: [Select]
service named restart
tail -n 200 /var/log/messages
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: Php errros in CWP panel
« Reply #29 on: July 19, 2018, 09:56:23 AM »
Thanks, studio4host.

Bullen has fixed it. He may put his guides here soon to benefit everyone.

Cheers