Oh dear goodness, has this been an interesting several months. For reasons I still entirely understand, upgrading WordPress and PHP has been a nightmare. After MUCH digging I finally got it all working.
For those who just tuned in, I’ve been trying to upgrade PHP for this website for months. After migrating from an old, out of service Amazon Linux 2018 instance I upgraded to Amazon Linux 2 which reached its EOL in 2026. My plan was migrate all the way to Amazon Linux 2023 with everything being up to date. Regrettably, WordPress stopped working every time I upgraded PHP. Despite turning on all logging features I wouldn’t even get a log generated!
All of the online advice I saw totally didn’t apply; update all WordPress plugins? Check. Update the database? Check. Make sure it’s running with enough RAM? Check. Still nothing.
Finally I upgraded to AL 2023 and figured no matter how long it took I would get it running. After much digging, I discovered the problem had to do with WordPress’s wp-config.php file. I couldn’t tell WHAT about this file was wrong but when I used the one from a fresh install it worked. Ah-HA! Now I know what’s causing the outage.
I restored all of my WP files except the wp-config.php file. I used the fresh one and just added the relevant information.
BAM! The site worked. I now had to migrate the Elastic IP from the old instance to the new one and re-create the SSL cert, but once I did, it was working.
Now I’m gonna rest. Happy Thanksgiving!
