Thanks DanG. The problem has been resolved after installing the earlier version of php(5.3.

. Before this, the server had php version 5.4.3.
My personal rule of thumb is I'll try the latest stable PHP version release on my testbeds but won't go near a production site till it's been in the wild for at least 6 months.