Add two lines to your my.cnf (usually /etc/my.cnf)
query_cache_size = 16M ( a reasonable size to start with, you can increase it later if needed)
query_cache_type=1
Then restart MySQL