Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install php7.2 in ubuntu

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to install ubuntu php7.2, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Ubuntu install php7.2 method: 1, use ppa to add source; 2, view the source PHP7.2 version; 3, through the "sudo apt-get-y install php7.2" command to install php7.2.

Operating environment: ubuntu 16.04system, php7.2 version, DELL G3 computer

How does ubuntu install php7.2?

Official source on Ubuntu

For example, the default source of Ubuntu14.04 is PHP5.6.x, and the default source of Ubuntu16.04 is PHP7.0.x

Install through a third-party source

Ppa:ondrej/php is a well-known PHP source (currently maintains php5.6,php7.0,php7.1,php7.2,php7.3). Use this source to install the version of PHP you want.

Installation steps

Use ppa to add sources

Sudo apt-get install python-software-propertiessudo add-apt-repository ppa:ondrej/phpsudo apt-get update

View the PHP7.2 version in the source

Sudo apt list | grep php

Not surprisingly, the list already contains the version of PHP you want.

Install PHP7.2

Sudo apt-get-y install php7.2

The above is all the contents of the article "how to install php7.2 in ubuntu". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report