I have been following this tutorial to install WP CLI and now I get a “Problem loading website” error whenever I try to access any website on my droplet, using a browser. I can still SSH or SFTP on the server without issues.
I suspect the error was caused by apt-get update from which I got the error:
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
I tried to run sudo dpkg --configure -a but nothing happened (looks like it froze) and I then ^C it:
sudo dpkg --configure -a
Setting up openssh-server (1:6.6p1-2ubuntu2) ...
^Cdpkg: error processing package openssh-server (--configure):
subprocess installed post-installation script was interrupted
Errors were encountered while processing:
openssh-server
I did managed to finish the installation of WP CLI without any issue and it works.
Any tips on how to get access the websites again? Thanks!
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!
I managed to fix the issue. Aparently, apache2 was down and couldn’t be started. I deleted the file called apache2 and created a directory with the same name. Restarted and the issue was fixed.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.