I’ve created an AWS EC2 instance with a WordPress site running on it. The MySQL database is on Amazon RDS and everything works perfectly. I’ve created an image from the EC2 instance and a snapshot from the RDS instance and attempted to bring up the site using the new instances but I keep getting a blank white screen. I can connect to the new RDS instance using MySQL Workbench so it looks like it’s running. I can open up a phpinfo.php page on the EC2 instance so it looks like the web server is running. I’ve modified the wp-config.php file to point to the new RDS instance and changed the DOMAIN_CURRENT_SITE to point to the new EC2 instance. Still getting a blank screen. Any other options I can try? I’ve set WP_DEBUG to true but I don’t get any error messages. Any help would be greatly appreciated.
thanks.
In my experience White Screens are commonly database issues.
Ensure you’re connecting correctly and that the WordPress database is correct.
At a guess of the most likely problem; your
/wp-config.php
should contain the correct database hostnameinstance-name.randomcode.amazon-region.rds.amazonaws.com
as opposed tolocalhost
. This is because if you’re running an RDS instance for your database it’s a different server and than your AWS instance. This means it’s not on the AWSlocalhost
.For more info the AWS docs are usually somewhat helpful. You can find them here