socket timeout and 500 internal server error

Hi,

I was wondering if there is anyone that can help here.

Over the last months I have had errors socket timeout and 500 internal server error bring down my website for ave. 3 -10 mins. I am trying to run a training website that people will need to access all the time, how can I stop or at least reduce these from occurring?