Reboot server using PUTTY

Posted April 12, 2018 5.1k views
Linux CommandsUbuntu 16.04

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.

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.

Submit an Answer
1 answer

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.