Some of the documentation I used:
1. Getting ssh to work from Mac OS X terminal. Lightsail uses ssh keys for access. They also have a web-based ssh session which is pretty good but it has a short time-out. Plus, I like my terminal.
How do I set or change the root password for my EC2 Linux instance?
Amazon EC2 Key Pairs – Retrieving the Public Key
Set up SSH in Amazon Lightsail
Log in with an SSH private key on Linux and Mac
Tutorial: Installing a LAMP Web Server on Amazon Linux
2. Now I need
$ sudo yum install vsftpd
3. Wait, no
That’s right. With LightSail, it’s in the Networking tab on the Lightsail dashboard and you use that to open up ports, in this case, ftp 20-21, 1024-1048
Yikes. I can’t do SSL until the site is migrated over. Oh well. Let’s do that.
5. Migrate WordPress files, export/import the database. Needed to change
wp_options siteurl and home from http://domain.com to http://x.y.z.a After using the IP address in the URL, I can get pages to load. Whoo hoo!
6. Migrated the DNS
7. Hm. Why is /html not directing to subdirectory/ and why and why am I getting 500 errors? Well, I can get WP to work now but by manually adding the subdirectory in the URL which means that
mod_rewrite isn’t working.
Hm. check php.ini. Well,
mod_rewrite is installed. So what’s up then?
/var/log/httpd/error_log is showing something funky in
.htaccess. Weird control characters? Oh man, I must have introduced them in a copy/paste. Once retyped, it works.
Except non-default Permalinks. Argh.