In my last post, I set up a simple S3 static website for the domain www.hiredatagram.com. The only problem is that the naked domain http://hiredatagram.com doesn’t resolve. In this post, I will show you how to redirect an S3 bucket (naked domain) to the S3 bucket that host the static website (www). We will not be using Godaddy for DNS hosting as they don’t support CNAME flattening. Cloudflare, however, does support CNAME flattening.
Setup an S3 bucket to host a simple static website. This tutorial will not cover CloudFront or Route53. I will use Godaddy for DNS. My test website will be a free website template called Global, which is free to download from GitHub.
I’ve moved over to AWS and I’m running a fresh Amazon Linux 2 instance. I’ve got wordpress loaded and I try to crop an image for my theme’s header and I get “There has been an error cropping your image“.
After a little research, the obvious answer is to install php-gd and restart apache. This did NOT work for me. I did it about 5 times and checked my phpinfo to make sure php-gd was installed and it was.
After about an hour, I said I will restart the whole instance. That fixed it for me, still have no idea what service was causing the hang up.