New in CWP Edge / LTSFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers. Available now in the Edge-Latest and LTS-Stable versions. Discuss in the forum

LSPHP / Cache ›
CWP Secure KernelKernel-level protectionEvery site in its own sandbox

Every PHP site, cron job and SSH session runs in its own profile that the kernel enforces. A hacked WordPress cannot read other accounts’ files, and crypto miners and unexpected processes are stopped. Discuss in the forum

Secure Kernel ›
CWP DataCenter PanelFree for CWPpro serversAll your servers on one screen

Manage all your CWP servers from one panel: live health, every hosting account, CWP and OS updates on many servers at once, backups, SSL, firewall and Telegram alerts. Discuss in the forum

DataCenter Panel ›
CWP Backup ServerFree for CWPpro serversBackups that ransomware cannot reach

Protected backups of all your CWP servers on a separate machine. Snapshots a hosting server cannot delete, and restore of files, databases, mail and whole accounts in the admin and user panel. Discuss in the forum

Backup Server ›
WordPress ManagerIncluded & freeWordPress managed from the panel

Install, secure, update, back up and clone WordPress sites without FTP. Updates are tested on a staging clone first and applied to the live site only when they pass, with a backup taken first. Discuss in the forum

WordPress Manager ›
CWP CageIsolationEvery account in its own cage

Per-account isolation built from Linux namespaces and cgroups. A break-in or a runaway script on one site cannot reach another account, the panel or the rest of the server; resource limits per hosting package. Discuss in the forum

CWP Cage ›
Script InstallerOne-click appsWordPress, Joomla, Moodle and more in one click

CWP’s own script installer in the user panel: pick an app, choose the domain and folder, and it is live in seconds with its database and admin login created automatically. Ready for LSPHP and LSAPI-Cache. Discuss in the forum

Script Installer ›
DNS ClusterFor every control panelOne DNS cluster for all your servers

Your servers keep creating domains as usual; the zones are collected into one authoritative PowerDNS cluster you control, with DNSSEC, roles and a full activity trail. Accepts CWP, cPanel, Plesk, DirectAdmin and BIND. Discuss in the forum

DNS Cluster ›
CWP BillingFree to useBilling and support system for hosting providers

Clients, services, invoices, payments, domains, server provisioning and support tickets in one place. All gateways, server modules and registrars are free, with free migration from WHMCS, ClientExec and Blesta. Discuss in the forum

CWP Billing ›
CWPproFrom $1.49 per monthEvery CWP feature unlocked

CWPpro is the professional version of Control Web Panel: all features, unlimited accounts, the latest CWP version and security fixes first. $1.49 per month or $11.99 per year. Discuss in the forum

Get CWPpro ›

Php errros in CWP panel

Started by daro2013, July 17, 2018, 10:28:44 AM

Previous topic - Next topic

bullten

What is output of

yum list installed | grep bind

And

serivce named restart

daro2013

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

bullten

Sorry I miss typed Its

service named restart

daro2013

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

bullten

what is output of this.

systemctl status named.service

daro2013

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

bullten

Issue in  /var/named/baiagmumr5g.eu.db

Recreate it.

daro2013

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

studio4host

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.

daro2013

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

bullten

did you try rebuilding zone?

daro2013

Hi,

Can you give me instruction on how to rebuild zone?

Cheers

daro2013

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

studio4host

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
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.

daro2013

Thanks, studio4host.

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

Cheers