Going from PHP 7.0 to PHP 7.2

โšก Quick command to update your server easily ๐Ÿ’ช

@JakeLPrice · 3 Minutes Read · 4 months ago

TLDR:

Don't want to read about why we made the script - and just want to run the 1 magic command to make it work? Here it is:

wget https://gist.githubusercontent.com/JakePrice86/486f487672f9291cc95f0b677f22800c/raw/10212e99e97895ab3b57f514aa8423ed2a7218c4/update.sh && bash update.sh

When creating servers from DigitalOcean we usually find ourselves reaching for the "One-click apps" images - and as we usually use PHP for client backend work, we love to use the LAMP on 16.04 image โค๏ธ

Creating a new DigitalOcean droplet is SUPER easy!

Creating a new DigitalOcean droplet is SUPER easy!

The issue with this is it comes with PHP 7.0, which is not good enough for the latest Laravel's versions โ˜น๏ธ. Luckily, we've done the hard work finding the best options for a quick and painless upgrade - and we've rolled it into a small BASH script for easy use ๐Ÿš€

Whats the best way to use this script? Easy - here is what we do. After this has ran, the script will print the version it has updated to! It'll take 30 seconds to a minute depending on internet speed!

wget https://gist.githubusercontent.com/JakePrice86/486f487672f9291cc95f0b677f22800c/raw/10212e99e97895ab3b57f514aa8423ed2a7218c4/update.sh && bash update.sh

Amazing! In just 1 command, you'll have the latest and most update version of PHP you'll find! Big props to Ondล™ej Surรฝ who maintains the package repo we use for PHP - you can donate to him here: https://deb.sury.org/#donate

Please come back to our website for more blogs on using Laravel for clients as well as for fun projects ๐Ÿ‘๐Ÿ‘๐Ÿ‘