Okay, here’s what I did. If this happens, hopefully this will work favourably for you.
- If this is disabled by default, enable wp-debug by changing the value from false to true.
- Check that you have enabled WP_DEBUG_LOG and WP_LOG_DISPLAY.
- Try refreshing the page and see what happens.
- Either using WinSCP or the terminal, go to
/var/log/apache2/error.log
- If you see that certain PHP files are missing, download a fresh copy from here.
- Follow the prompts in the error log to replace each file that is missing, making sure to change ownership and permissions to www-data 0640 or 0644.
- If, after you have replaced everything, you find that WordPress is giving you a permission denied message, type the following:
# find -type f -exec chmod 640 /var/www/html/my_site/html/blog {} \;
# find -type d -exec chmod 750 /var/www/html/my_site/html/blog {} \;
- Continue repeating this process until your blog shows up.
- If WordPress tells you that a plugin is missing, you can either download a new copy or delete it and install it via the dashboard.