I have just transferred my blog from my local webserver 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!
Thanks
Basic: Connecting to Your Linux Instance from Windows Using PuTTY
Step 1: Open PuTTY to login in AWS EC2 console
Step 2: Enter Server Address
Step 3: Browse Auth Private Key in PuTTY
Step 4: Login to AWS through PuTTY (Enter “Login as name” i.e. your AWS ec2 instance name. for above example: ec2-user)
Step 5: Change directory to /etc/httpd/conf (
$ cd /etc/httpd/conf
)Step 6: execute
sudo vi httpd.conf
to update httpd.conf file. (Open httpd.conf file in VI editor)Update Following
To
And
To
Step 7: Save and Exit from VI editor.
To save and exit from VI editor press [Esc] key and type
:wq
Step 8: Restart Apache
Type
sudo apachectl -k restart
Final Screenshot
On AWS my file was in a slightly different location:
After changing
AllowOverride None
toAllowOverride All
in both locaitons and restarting withsudo service httpd restart
permalink redirects work great!