Here is a list of possible solutions.
Additional: If RoundCube is giving you an Internal Server Error then here is a possible fix: Roundcube1.5.x Internal Server Error - FIX