Reboot server using PUTTY

April 12, 2018 310 views
Linux Commands Ubuntu 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.

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.

Have another answer? Share your knowledge.