A great linux stuff website

Monthly Archives: September 2014

To Add DKIM for single user use below command

# /usr/local/cpanel/bin/dkim_keys_install

Using below command it will help to Add DKIM record to all local accounts

# cd /var/cpanel/users
# for u in *;do echo “Installing DKIM for user $u”; /usr/local/cpanel/bin/dkim_keys_install $u; done

Add SPF record for a single account below command will add such record
# /usr/local/cpanel/bin/spf_installer

Add SPF record to all local accounts at once
1. Go to the # cd /var/cpanel/users

2. Then use below command
for u in *;do echo “Installing SPF for user $u”; /usr/local/cpanel/bin/spf_installer $u; done

Advertisements

Sometimes on the cPanel server server correct root password was not accepting to login your server
Example: ssh root@192.168.10.124 -p124
passwd:
Error some like this: Incorrect password or not accepting.

This autofixer is designed to kill off your existing SSH server daemon and to start a new one on port 22 with a very basic configuration. If for some reason the autofixer cannot bind to port 22 it will attempt to find the next available port. Pay attention to it’s output! Once your done you should restart ssh by logging into the clicking WHM ? Restart Services ? SSH Server (OpenSSH).

Auto Fix aut url you can use this url’s once you login to your WHM (it will disable ssh port temporarily as well)
Non Secure: http://xxx.xxx.xxx.xxx:2086/scripts2/doautofixer?autofix=safesshrestart

Secure: http://xxx.xxx.xxx.xxx:2087/scripts2/doautofixer?autofix=safesshrestart


Sometimes on cpanel bases server the domain showing error “404 Not found” while checking some error logs found in backhand “Caught race condition abuser”.

The issue is going on because there was incorrect ownership and permission for the particular user files.
1. Check public_html ownership it should be user.nobody and permission need to be setup 0750
2. cd to public_html and setup recursively permission chown user.user * -R