I'm not able to open "Manage Modules" and "Portal Dashboard" on my OpenEMR Ubuntu instance

I would think you did :
sudo a2enmod rewrite
I attached a screen shot of my apache2.conf in the path
/etc/apache2/apache2.conf
It worked for me on ubuntu.