thanks for quick reply..
I am using Redhat 6.2 and I installed it couple of days back with "custom installation" option..(I followed philip greenspun's installation guide)I am sure that postgre and apache were not there when I installed rpm...now how can I check/remove apache and postgre