Question

How to reboot droplet through the command line / restart apache server

  • Posted September 22, 2014

I tried increasing php.ini upload file size. No effect after entering the commands (I found them here: https://www.digitalocean.com/community/questions/increase-max-file-upload-size-in-wordpress-using-ubuntu-12-04-lemp-stack). Do I have to restart the server? Please help.

Subscribe
Share

To increase the max file upload you can set the size from wordpress settings. As for the reboot , by entering “reboot” in cmd … should do the trick.

To increase the max file upload you can set the size from wordpress settings. As for the reboot , by entering “reboot” in cmd … should do the trick.


Submit an 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.

Hello, all

In order to reboot the droplet using the command line you can use these two options:

sudo reboot

and

sudo shutdown -r now

They basically do the exact same thing so using any of them will complete the task.

Generally speaking the shutdown command is more preferable because you have the option to specify the reason for the system reboot, e.g a maintenance. Additional feature is that you can schedule when the system needs to be powered down.

sudo shutdown -r now 'System maintenance'

Hope that this helps!

To reboot a server from the command line, run:

sudo shutdown -r now

To restart Apache, run:

sudo service apache2 restart

To reboot a server from the command line, run:

sudo shutdown -r now

To restart Apache, run:

sudo service apache2 restart

To reboot a server from the command line, run:

sudo shutdown -r now

To restart Apache, run:

sudo service apache2 restart

To reboot a server from the command line, run:

sudo shutdown -r now

To restart Apache, run:

sudo service apache2 restart

To reboot a server from the command line, run:

sudo shutdown -r now

To restart Apache, run:

sudo service apache2 restart

To reboot a server from the command line, run:

sudo shutdown -r now

To restart Apache, run:

sudo service apache2 restart

To reboot a server from the command line, run:

sudo shutdown -r now

To restart Apache, run:

sudo service apache2 restart

To reboot a server from the command line, run:

sudo shutdown -r now

To restart Apache, run:

sudo service apache2 restart

To reboot a server from the command line, run:

sudo shutdown -r now

To restart Apache, run:

sudo service apache2 restart