Reboot server using PUTTY

Hi guys,

Been having problems all day, with sites all going down.

I am using PUTTY on Windows to access the server.

To update: I use sudo apt-get update && sudo apt-get dist-upgrade

Seems to work.

Could someone tell me what’s next?

I think I need to reboot the server or apache but it keeps not working.

Putty keeps dumping me out and/or the sites are still down.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

After doing an upgrade that installs a new kernel version a reboot is required for the new kernel to be loaded. You can do this from PuTTY with sudo reboot. It is expected that this will kick you out of PuTTY since there will not be a server on the other end of the connection during the reboot.

Once rebooted, if your sites are not up you can try manually starting Apache with:

sudo service apache2 start

If the service fails to start, check the Apache error log file in /var/log/apache2/error.log where details of any errors encountered when trying to start the service will be recorded.