Cant login to my sites on AWS but I CAN login with the same database on my local machine I've loaded two different Drupal 7 sites on Amazon Web Services (AWS) Ubuntu instances. They both work fine and are configured mostly correctly. 

The only problem is, I can't login to either site using my Drupal username/password combinations! (either site). I've double and triple checked my passwords/making sure CAPS LOCK isn't on, etc. I cleared cookies and even tried the permissions suggestion given in this article. 

No matter what I do when I try to login to either site on AWS I get a silent login fail. No errors, the browser just reloads and prompts me to login again. I know the username/password work because on my local machine for both sites I can login easily using the same database. 

Note: I, of course, imported the databases for both projects so they SHOULD have the same user data. 

Anyone know what else I can try?
Well, I fixed it. I had to run the following command:

sudo a2enmod rewrite