Wednesday, November 17, 2010

View stats without login into capnel

Without login into cpanel how we can check the webalizer stats

Some of the designers they don't want to provide the cpanel login details to their customers because they will mess up your domain settings :-D. Here is a simple method how to allow the non tech customers to view their web site stats without login into their cpanel

1. cd /home/ajeesh/public_html/

next please verify your stats location, most of the cases it will be on your /home/username/tmp/

2. ln -s home/ajeesh/tmp/webalizer/ stats (here i have created a soft link to his home directory)

3. chown -R ajeesh.ajeesh stats/

that is all now they can see that stats on www.domainname.com/stats

Friday, November 12, 2010

welcome message for SSH

You can set your own Welcome message for your server for that you need to edit your /etc/motd file

[root@tech24 ajeesh]# vi /etc/motd

Wednesday, November 10, 2010

Cpanel quota issues

On VPS based system
/proc/vz/vzaquota/00000073/aquota.group and /proc/vz/vzaquota/00000073/aquota.user are the files which managing the VPS quota

For some cases customer can not create users because of the quota issue. This may likely because of the damage of their quota file.

Solution
On you VE please run the following commands.

rm -rf /aquota.user 2>/dev/null
rm -rf /aquota.group 2>/dev/null
unlink /aquota.user 2>/dev/null
unlink /aquota.group 2>/dev/null
for x in `find /proc/vz/vzaquota/ | tail -2 `; do ln -s $x / ; done

=============================
2. WHM and server showing different quota size
# /scripts/initquotas
# /scripts/fixquotas
# /scripts/resetquotas
screen -S ea quotacheck
sh-3.00# quotacheck -avfumg

now compare whm and server to verify your disk quota is similar

If it is not perfect we need to take vm offline for 10 minutes to recalculate the disk space usage

On your HN(Harware Node)
# screen -S quotarebuild
# vzctl stop
# vzquota drop
# vzctl start