Coming from a cPanel world - how does one update LAMP stack on D.O?

I am planning to sign up for one or more D.O droplets, but, coming from a cPanel/WHM background, where all aspects of the LAMP stack and other software packages are automatically updated, secured and maintained by cPanel, needing to maintain everything by myself seems rather daunting.

I know there are one-click scripts for installing the OS, Apache, MySQL and PHP, but what about updating them to apply patches etc.? How exactly does one go about ensuring that the different LAMP stack components and other software packages such as, say, phpmyadmin are kept updated?

I am planning to run Ubuntu LTS on the droplets.

How much time would I need to spend on a weekly/monthly basis, updating all this stuff on the server?

Thanks in advance, Ramdak

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.

Hey Ramdak,

As long as everything was installed via the package manager (apt-get), you can update the entire system with 2 commands:

  1. sudo apt-get update


  1. sudo apt-get upgrade

You can do this weekly or monthly, but it should be done at least every once in awhile. Especially if a vulnerability is announced and patched. You can automate this with a cronjob, but that would be up to your discretion.

NOTE: The 14.04LTS distro will require you to update the kernel in the control panel if the software update/upgrade installs a new kernel.

Happy coding,

Jon Schwenn Platform Support Specialist DigitalOcean