Archive for the Cpanel Issues Category

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.

spamd has failed, please contact the sysadmin

If spamd is not running on your server means there is some problem with installation of SpamAssassin, so to fix this you need to re-install SpamAssassin on the server. Follow the below steps to install SpamAssassin on your server :

[email protected][#] cd /home/.cpan/sources/authors/id/J/JM/JMASON/
here you found spamAssassin tar.gz file.
[email protected] [/home/.cpan/sources/authors/id/J/JM/JMASON]# ll

total 1196
drwxr-xr-x 3 root root 4096 Mar 13 16:11 ./
drwxr-xr-x 5 root root 4096 Mar 13 16:07 ../
-rw-r–r– 1 root root 4179 Mar 13 16:07 CHECKSUMS
drwxr-xr-x 11 mysql bin 4096 Mar 16 2010 Mail-SpamAssassin-3.3.1/
-rw-r–r– 1 root root 1196842 Mar 13 16:07 Mail-SpamAssassin-3.3.1.tar.gz

Now copy CHECKSUMS in /home/.cpan/sources/authors/id/cPCPAN/
[email protected][/home/.cpan/sources/authors/id/J/JM/JMASON]#
cp CHECKSUMS /home/.cpan/sources/authors/id/cPCPAN/

[email protected][#] /scripts/perlinstaller --force Mail::SpamAssassin

This will forcefully install SpamAssassin

Finally restart the exim service this will update the spam database
Now check the status, it will surely work for you now.
[email protected][#] /scripts/restartsrv_spamd --status
 spamd (spamd child) running as root with PID 9821

That’s all easy isn’t it.