Finally got my web server and wordpress working, mostly right.
Currently hosting this site on Debian Bullseye and moved the site from michaelpapet.com to michaelpapet.us.. Easy 5 minute upgrade, right? Wrong… 🙁
I did probably the least compatible thing and upgraded from some version of WordPress in 2018 to latest version available, 2020-07-24.
Naturally, I got the ‘white screen of death.’ What made matters worse, running index.php on the command line ALSO returned no error. Nothing!
Question: what’s a DevOps guy supposed to do when there is no error logged to a file as integral to a PHP site as index.php AND, AND, AND the domain has changed?
Answer: a whole FOUR steps:
- Log into your mysql server, wordpress database and run
update wp_options set option value = 'http:\\my-cool-new-domain" where option_name in ('site_url', 'home');
php wp-admin.phpon the command line and see what it produces. Note: you have php-cli installed, right?
php wp-admin.phpdumps a bunch of html, then use
http://my-cool-new-domain/wp-admin.phpin a web browser to log into the WordPress install.
WordPress needs an update to the database schema if you login successfully. And then your control panel should have a bunch of notifications to upgrade stuff
- Change your theme to something actually included with the latest version of wordpress and your site should “just work” like magic.