Forcefully restore cpanel backup file from a specific location.

ARUN Post in BACKUP, WHM BACKEND
0
Forcefully restore cpanel backup file from a specific location.
/scripts/restorepkg --force /home/USERNAME/backup-11.28.2011_23-00-USER.tar.gz

Reset email count in Direct Admin

ARUN Post in DIRECT ADMIN, MAIL
0

How to reset email count in Direct admin :

echo “” > /etc/virtuage/usage/username

How to install and configure maldet scan

ARUN Post in ATTACK, FIREWALL, INSTALLATION, VIRUS SCAN
0

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.

SMTP Error: No support for Delivery Status Notifications on Roundcube

ARUN Post in MAIL
0
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".

rndc: neither /etc/rndc.conf nor /etc/rndc.key was found

ARUN Post in DIRECT ADMIN, DNS
0

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

Running startx shows error : xinit: No such file or directory (errno 2): no server “/usr/bin/X” in PATH

ARUN Post in Operating System
0
root@look [/]# startx
xauth:  creating new authority file /root/.serverauth.25798
xauth:  creating new authority file /root/.Xauthority
xauth:  creating new authority file /root/.Xauthority

xinit:  No such file or directory (errno 2):  no server "/usr/bin/X" in PATH

Use the -- option, or make sure that /usr/bin is in your path and
that "/usr/bin/X" is a program or a link to the right type of server
for your display.  Possible server names include:

    Xorg        Common X server for most displays
    Xvfb        Virtual frame buffer
    Xfake       kdrive-based virtual frame buffer
    Xnest       X server nested in a window on another X server
    Xephyr      kdrive-based nested X server

giving up.
xinit:  No such file or directory (errno 2):  unable to connect to X server
xinit:  No such process (errno 3):  Server error.
root@server [/]#
SOLUTION : 
Try
yum install xorg-x11-server-Xorg
and if its installed already reinstall using below command :
yum reinstall xorg-x11-server-Xorg

Command to install KDE on centos server

ARUN Post in Operating System
0
yum grouplist | grep -i kde
yum groupinstall KDE Desktop
yum reinstall xorg-x11-server-Xorg

How to get VPS license details

ARUN Post in VPS
0

vzlicview

How to show a message when we login via ssh

ARUN Post in Boot, SSH, WHM BACKEND
0

Write the contents in file  /etc/motd

vi /etc/motd

How to get PCRE compilation details

ARUN Post in PHP
0
pcretest -C

Could not edit /home/username/etc/ftpquota

ARUN Post in CPANEL FRONTEND, FTP, WHM FRONTEND
0

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.

WHM does not show the nameserverips

ARUN Post in DNS, WHM BACKEND, WHM FRONTEND
0

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

ssh wont start even though it shows started

ARUN Post in SSH
0

-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# 

This frame was blocked because it contains some insecure content.

ARUN Post in PLESK FRONTEND, SSL
0

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

 

Clear /tmp when a particular user is occupying files

ARUN Post in DISK RELATED, LINUX COMMANDS
0

When /tmp is full and we cant find a specific pattern to delete the files and when a specific user with username “USERNAME” is occupying the most disk space

find /tmp -user USERNAME  -exec rm -rf {} \;

OR

for i in `find /tmp -user USERNAME`; do rm -f $i;done

OR

find /tmp/ -type f -user USERNAME | xargs rm -f