I have just transferred my blog from my local web server to Amazon EC2 Free Linux server, Everything seems to be working now except for permalinks, I disabled and re-enabled them and it still breaks.
I've tried running the script
sudo a2enmod rewrite
But it says a2enmod: command not found while logged into my server as ec2-user
Any help would be much appreciated!