500 server error on clear cache
As directed by aerozeppelin I got the following error: 


  Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 4096 bytes) in /home/htdocs/includes/database/query.inc on line 1857


So increasing the PHP memory limit is the cure; this link is useful for that.