Starting named: named: user ‘named’ unknown

If you face the above error while starting/restarting named on a cPanel server then follow the below steps :

[email protected][#] /etc/init.d/named start
Starting named: named: user 'named' unknown [FAILED]
[email protected][#] named -u named
 named: user ‘named’ unknown

Now, follow the below steps to fix this

1>  open  the /etc/passwd  file


[email protected][#]  vi /etc/passwd
  and now add this line :
named:x:25:25:Named:/var/named:/sbin/nologin

save and quit.

 

2> Open the /etc/group file
[email protected][#]vi /etc/group
and now  add this line
named:x:25:
save and quit.

Now,  try to start the named service

[email protected][#] /etc/init.d/named start
Starting named:        [  OK ]

That’s all, easy isn’t it.

 

 

How to install and configure Geoip

You can  install Geoip via /scripts/easyapache on a  cPanel server.

On other servers you can  try  :

pecl install geoip

or

cd /usr/local/src
 wget http://pecl.php.net/get/geoip
tar zxvf geoip
 cd geoip-1.0.7
phpize
  ./configure
  make
  make check
  make install

 

Once Geoip is installed then  install geoip database from  here :

http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
cd /opt/geoip/share/GeoIP

wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz

gunzip GeoLiteCity.dat.gz
cp -p  GeoLiteCity.dat GeoIPCity.dat

That’s all you are done.

How to check if InnoDB engine is enabled in MySQL

If you want to  check ,  if InnoDB is enabled on  the server ,  you can  check  this via two methods :

1>

 [email protected][#] mysqladmin variables | grep  have_innodb

If the above command show the output as below :

| have_innodb                             | YES

then it means InnoDB is enabled.

2 > [email protected][#] mysql
mysql> show engines;
If the above command shows the below output : 

+————+———+—————————————————————-+
| Engine     | Support | Comment                                                        |
+————+———+—————————————————————-+
| MyISAM     | DEFAULT | Default engine as of MySQL 3.23 with great performance         |
| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables      |
| InnoDB     | YES     | Supports transactions, row-level locking, and foreign keys     |
| BerkeleyDB | NO      | Supports transactions and page-level locking                   |
| BLACKHOLE  | YES     | /dev/null storage engine (anything you write to it disappears) |
| EXAMPLE    | YES     | Example storage engine                                         |
| ARCHIVE    | YES     | Archive storage engine                                         |
| CSV        | YES     | CSV storage engine                                             |
| ndbcluster | NO      | Clustered, fault-tolerant, memory-based tables                 |
| FEDERATED  | YES     | Federated MySQL storage engine                                 |
| MRG_MYISAM | YES     | Collection of identical MyISAM tables                          |
| ISAM       | NO      | Obsolete storage engine                                        |
+————+———+—————————————————————-+

then it means InnoDB is enabled.

That’s all,  easy  isn’t it.