'Accidentally changed permission for /var/www/html/roundcubemail recursively

I'm new to this topic hence this mistake. So, I tried to get Roundcube working and after installing it and uncompressing it, I wanted to give it the right permissions for apache. I had some permissions written down for myself and ended up using the wrong ones without giving it much thought (my fault). In root user, I used chmod -R 640 /var/www/html/roundcubemail and chmod -R g+r /var/www/html/roundcubemail. Now I can't access any of my earlier made pages and I am getting the 403 error.

Is there an easy way of fixing this? I'm scared of trying stuff myself in case I make it worse. Thank you for all tips!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source