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

September 22, 2014 173.1k views

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.

1 comment
  • 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.

8 Answers

To reboot a server from the command line, run:

sudo shutdown -r now

To restart Apache, run:

sudo service apache2 restart

i restarted server using this above cmd and ,my game - vcmp server isnt working now, seems like it has been stopepd working, any help would be appreciated.

Wouldn't "reboot" simply been the better answer?

  • they both seem to work.. but I wonder at a technical level what the difference would be. If one is a 'safer' way to restart?

Have another answer? Share your knowledge.