Monthly Archives: March 2020

named.service failed. Centos Web Panel

Named on Centos webpanel was not starting on server

On checking logs only below information were displayed

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 Fri 2020-03-13 07:30:38 EDT; 5min ago
Process: 24466 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)


Mar 13 07:30:38 OK1129.test.com systemd[1]: named.service: control process exited, code=exited status=1
Mar 13 07:30:38 OK1129.test.com systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Mar 13 07:30:38 OK1129.test.com systemd[1]: Unit named.service entered failed state.
Mar 13 07:30:38 OK1129.test.com systemd[1]: named.service failed.

To find errors you need to use below command and fix the displayed error to get DNS online

named-checkconf -z /etc/named.conf

Invalid command ‘SetEnv’, perhaps misspelled or defined by a module not included in the server configuration,

While working on server

We saw one website giving 500 error

On checking I see error was coming on .htaccess rules

/docs/subdomains/my/public_html/.htaccess: Invalid command ‘SetEnv’, perhaps misspelled or defined by a module not included in the server configuration

To resolve this problem, we need to install the module ‘mod_env’ manually.

For easyapache4 users,

#yum install ea-apache24-mod_env.x86_64