Currently seeking new career opportunities in web development, particularly with Laravel, Hire Me

Setup Digital Ocean - Part 2 Upgrade PHP to 7.3

David Carr

VPS Tutorials Digital Ocean

Digital Ocean's LAMP comes with PHP 7.2 let's update this to PHP 7.3

First, install PHP repository from ondrej/php 

sudo add-apt-repository ppa:ondrej/php

Then update and upgrade 

sudo apt update

Now install PHP modules

sudo apt-get install php7.3 libapache2-mod-php7.3 php7.3-cli php7.3-mysql php7.3-gd php7.3-imagick php7.3-recode php7.3-tidy php7.3-xmlrpc

Disable 7.2

systemctl restart apache2

Enable 7.3

sudo a2enmod php7.3

Restart the server

systemctl restart apache2
Laravel Modules Your Logo Your Logo Your Logo

Become a sponsor

Help support the blog so that I can continue creating new content!


My Latest Book

Modular Laravel Book - Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more

Subscribe to my newsletter

Subscribe and get my books and product announcements.

Learn Laravel with Laracasts

Faster Laravel Hosting

© 2006 - 2024 DC Blog. All code MIT license. All rights reserved.