How to Install PHP 7 2 on Ubuntu 16 04

September 6, 2019 Liquid Web

In this video, we demonstrate to you how to Install PHP 7 2 on Ubuntu 16 04

Commands used:
php -v
php --ini
sudo cp -a /etc/php/7.0 /etc/php/7.0.backup
php -m (right angle bracket) /tmp/7.0.modulelist.txt 
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.2
ls /etc/apache2/mods-available/php*
/etc/apache2/mods-enabled/php*
sudo a2dismod php7.0
sudo a2enmod php7.2
apachectl -t
sudo service apache2 restart
sudo apt-get install php7.2 TAB TAB
php -m (right angle bracket) /tmp/7.2.modulelist.txt

diff /tmp/7.0.modules.txt /tmp7.2.moduleslist.txt
vimdiff /tmp/7.0.modules.txt /tmp7.2.moduleslist.txt
sudo apt-get install php7.2-mysql

The related article for this video can be found here: https://www.liquidweb.com/kb/install-php-7-2-ubuntu-16-04/

For more information about this and other topics, visit us at https://www.liquidweb.com/kb/ 

For more information on our Dedicated server specials visit us at: https://www.liquidweb.com/products/dedicated/ 

Video by: Alex Gorzen

About the Author

Liquid Web

Liquid Web powers online content, commerce, and potential for SMB entrepreneurs and the designers, developers and digital agencies who create for them. Sign up for our newsletter to stay up to date with our latest content.

More Content by Liquid Web
Previous Video
Customer Acquisition Cost Analysis Webinar
Customer Acquisition Cost Analysis Webinar

In this Liquid Web Webinar, learn ways to decrease your customer acquisition cost so your business is able ...

Next Video
How to Install and Configure vsftpd on CentOS 7
How to Install and Configure vsftpd on CentOS 7

In this video, we will be installing VSFTPD on CentOS 7. VSFTPD is one of the most secure and fastest FTP s...

Learn What Qualities to Look for in Your Next Host in Our New Guide!

Download Now