No luck, actually the error 500 is only on roundcube, it appears after trying to login.
I guess roundcube is broken, I know I can use other webmail client, but I kinda need the roundcube to work, because I do not want to explain to the people that use e-mail on my server how to use a different client other than roundcube