This question already has an answer here:
I got this situation that when I Add Products on my site I sometimes got Internal Server Error.
What can be the solution to prevent the "Internal Server Error"?
Someone suggested increasing the Timeouts.
try changing the following MySQL settings for connection timeouts: connect_timeout=15 wait_timeout=30 interactive_timeout=500 to connect_timeout=90 wait_timeout=600 interactive_timeout=600
Can this be a solution?