Wednesday, June 23, 2010

Cpanel / WHM /FTP/E-mail are showing incorrect or zero disk usage?

Hi Guys,

If you get such type of problems, please refer the following steps to resolve the issue. The reason is that I have followed it and fixed it.

1. Execute following scripts on the server.
root@venice [/]# /scripts/initquotas; /scripts/resetquotas; /scripts/fixquotas

2. If the issue is still there then check whether "usrquota" option has enabled or not for home directory(/etc/fstab). Please enable it. Also check the rw option of the home directory where user's home directory is there. I did following things.

root@venice [/]# cat /etc/fstab | grep home
LABEL=/home /home ext3 defaults 1 2
root@venice [/]#
root@venice [/]# mount -o remount,rw, usrquota /home
root@venice [/]# cat /etc/fstab | grep home
LABEL=/home /home ext3 defaults,rw,usrquota 1 2
root@venice [/]#

3. Make sure those options has also enabled in /etc/mtab.

root@venice [/]# cat /etc/mtab | grep home|column -t
/dev/sda8 /home ext3 rw,usrquota 0 0
root@venice [/]

Then I refreshed the WHM. It was displaying the correct disk usages.

TC.. :)

Friday, June 11, 2010

How to scan the ports on the machine?

1. Verifying Which Ports are Listening :
nmap -sT -O localhost/remote host/subnet

2. Check the port http of your local network :
nmap -v -p 80 192.168.1.*

3. ping scan :-
nmap -v -sP or nmap -sP 192.168.2.*

4. UDP scan :-
nmap -v -sU

5. O.S Detection scan :-
nmap -O --vv

6. To check which protocol is supported by the remote machine :-
nmap –sO hostname

Sunday, June 6, 2010

Why is horde or webmail showing blank page ?

Issue : Horde is showing blank page while someone is accessing the webmail interface.
Solution :

I got this issue when one customer had notified it. It usually happens if path of the horde libray is not defined in the /etc/httpd/conf.d/zz010_psa_httpd.conf file. So,
a)edit the /etc/httpd/conf.d/zz010_psa_httpd.conf file
b) Find the directive "Include".
Example :

Before :
include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:."

After (Correct) :

include_path "/usr/share/psa-horde/lib:/usr/share/psa-horde:/usr/share/psa-horde/pear:."

c)Then restart the httpd service. That's it.