Report this

What is the reason for this report?

WordPress no longer working after Ubuntu upgrade

Posted on January 29, 2018

Hi, in anticipation of the current patching done to the machines to handle the Meltdown and Spectre issues, I upgraded my Ubuntu from 14 to 17.10. Now the WordPress site no longer works.

The article at seemed to be the same issue. https://www.digitalocean.com/community/questions/upgraded-ubuntu-on-droplet-now-wordpress-site-is-blank

I followed the first step and my script…

<?php phpinfo(); ?>

Doesn’t do anything.

What do I need to do to get my WordPress site back again?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Revert your droplet to the snapshot you had performed before your in-place OS upgrade.

Hey, found your question while having the same issue (when upgrading to Ubuntu 18.04.1).

In my case, it seems the PHP module was not enabled in Apache, so the following command had to be run:

sudo a2enmod php7.2

After that, restart the Apache2 service:

sudo systemctl restart apache2

That would be it. I hope it works for you!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.