I need to know how to update LEMP on Ubuntu 18.04 to the latest. I have created a droplet with LEMP and nginx/1.14.0. Because this is the version that was available in Digitalocean. I have hosted several websites on this single droplet.
Can someone give me step by step procedure on how to update this droplet? I need to update NGINX, PHP, MYSQL, and ubuntu to the latest versions. I believe this will be helpful to many users here. Thank you
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!
Pre-Built Packages for Mainline version on nginx.org: http://nginx.org/en/linux_packages.html#mainline
Warning: The nginx.org repository does not currently support Ubuntu 18.04. Support for Bionic should be available soon.
This will get you the latest version of Nginx. Use this version if you are a pro and if you really need the most actual Nginx build, as it may lack some Ubuntu specific integration and tweaks.
Download and add the PGP key to authenticate the Nginx repository signature: wget -qO - https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
Append the repositories to the end of the /etc/apt/sources.list file:
echo “deb http://nginx.org/packages/mainline/ubuntu/ bionic nginx” | sudo tee -a /etc/apt/sources.list
echo “deb-src http://nginx.org/packages/mainline/ubuntu/ bionic nginx” | sudo tee -a /etc/apt/sources.list
Update and install: sudo apt update && sudo apt install nginx
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.