Forcefully restore cpanel backup file from a specific location.
/scripts/restorepkg --force /home/USERNAME/backup-11.28.2011_23-00-USER.tar.gz
Forcefully restore cpanel backup file from a specific location.
/scripts/restorepkg --force /home/USERNAME/backup-11.28.2011_23-00-USER.tar.gz
How to reset email count in Direct admin :
echo “” > /etc/virtuage/usage/username
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
tar -xzvf maldetect-current.tar.gz
cd maldetect-*
sh install.sh
================================
[ maldet –scan-all /home/*/public_html/ —> To scan ]
[ maldet –report 122111-1532.827 —–> To see the report ]
[ maldet -q 122111-1532.8272 —-> To remove the Infected files ]
maldet(7488): {scan} quarantine is disabled! set quar_hits=1 in conf.maldet or to quarantine results run: maldet -q 125211-1258.7488
INFECTED FILES LIST in
cd /usr/local/maldetect/sess/
There is a file that start with session.
Getting the below message in roundcube while trying to send emails :
SMTP Error: No support for Delivery Status Notifications.
Solution :
You can un-check the option in Roundcube >> Settings >> Composing Message >>
"Always request a delivery status notification".
Getting below message on direct admin server while named status is checked :.
[root@server ]# service named status
rndc: neither /etc/rndc.conf nor /etc/rndc.key was found
Solution :
rndc-confgen >> /etc/rndc.conf
Open /etc/rndc.conf
cat /etc/rndc.conf
Add the content of key file as mentioned below to the end of named.conf
cp -ar /etc/named.conf /etc/named.conf.bak
A sample of the file part to be added is mentioned below :
=================================================================
# End of rndc.conf # Use with the following in named.conf, adjusting the allow list as needed: key "rndc-key" { algorithm hmac-md5; secret "9Agjel9AAghshhs85k0g=="; }; controls { inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; }; }; # End of named.conf
=================================================================================
Restart named /etc/init.d/named restart
Write the contents in file /etc/motd
vi /etc/motd
Could not edit /home/username/etc/ftpquota
Check permission for : /home/username/etc/ftpquota
It should be username:mail /home/username/etc/
File “ftpquota” should have username:username permission.
Main >> DNS Functions >> Nameserver IPs does not show the nameserverips
Solution :
cp -ar /var/cpanel/nameserverips.yaml /var/cpanel/nameserverips.yaml.bak
vi /var/cpanel/nameserverips.yaml
Should look like below :
**************************************************
--- ns1.arunp.in: 226.58.71.189: 1 count: '2' zones: giftnfun.com,arunp.in
ns2.nandamurifans.com:
226.58.71.190: 1
count: '2'
zones: giftnfun.com,arunp.in
**************************************************
Please make sure that “1” marked in RED should be altered as well. default will be “0”.
Restart cpanel and relogin
-bash-3.2# /etc/init.d/sshd restart
Stopping sshd: [FAILED]
Starting sshd: [ OK ]
-bash-3.2# pidof sshd
-bash-3.2# ps aux |grep ssh
root 24353 0.0 0.0 1836 492 pts/2 S+ 22:34 0:00 grep ssh
-bash-3.2#
Solution :
-bash-3.2# ls -lh /dev/null
-rw-r–r– 1 root root 12 Oct 18 22:43 /dev/null
-bash-3.2#
-bash-3.2# rm /dev/null
-bash-3.2# ls -lh /dev/null
ls: /dev/null: No such file or directory
-bash-3.2# mknod /dev/null c 1 3
-bash-3.2# ls -lh /dev/null
crw-r–r– 1 root root 1, 3 Oct 18 22:44 /dev/null
-bash-3.2# /etc/init.d/sshd start
Starting sshd: [ OK ]
-bash-3.2#
Getting the below message while trying to access a website thats having self signed ssl certificate in google chrome :
This frame was blocked because it contains some insecure content. chrome
Temp Solution :
Open the URL in Chrome >> right click on the error page >>
1 ) Click on View Frame Source. After loading the frame source, close the frame source page.
2 ) When loading the frame source if it shows an warning, click “proceed anyway”.
3 ) Back to your error frame’s page ant reload it