惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
aimingoo的专栏
aimingoo的专栏
V
V2EX
博客园 - 【当耐特】
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research
量子位
MyScale Blog
MyScale Blog
Hugging Face - Blog
Hugging Face - Blog
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
月光博客
月光博客
I
InfoQ
WordPress大学
WordPress大学
Martin Fowler
Martin Fowler
T
The Blog of Author Tim Ferriss
爱范儿
爱范儿
小众软件
小众软件
罗磊的独立博客
Recent Announcements
Recent Announcements
Blog — PlanetScale
Blog — PlanetScale
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

博客园 - 特洛伊-Micro

Anatomy of a .PPTX File: Unpacking the Open XML Format fiddlerscriptCustomize Menus Fiddler And LINQ Fiddler 过滤 js、css、jpg 等请求 Linq 中 Join 的用法 Open in Windows Terminal as administrator .NET 内存碎片化分析 Android 常见脱壳与反编译工具 使用夜神模拟器调试安卓apk C#实现前向最大匹配、字典树(分词、检索) Task.Run vs Task.Factory.StartNew 时下最流行的5个用于桌面应用程序开发的 JS 框架介绍 What Is A Web Application Firewall? Ubuntu18.04 source.list更新国内源 ubuntu16.04 wordpress建站教程 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Inside the Storage Engine: Anatomy of a record Inside the Storage Engine: Anatomy of a page MSSQL forensics (1) - MDF fundamentals
Ubuntu1604 Install PHP 7.4
特洛伊-Micro · 2022-12-05 · via 博客园 - 特洛伊-Micro

Firstly, to be able to install a certain PHP version, in this case, 7.2 you’ll need to add a certain repository to your system

 sudo apt-get install software-properties-common python-software-properties;
sudo apt-add-repository ppa:ondrej/php
sudo add-apt-repository ppa:jczaplicki/xenial-php74-temp
sudo apt-get update

Update the repository index.

sudo apt update

Install PHP 7.4 with the below command.

sudo apt install -y php7.4 php7.4-cli php7.4-common php7.4-fpm

To install extensions run

sudo apt install -y php7.4-mysql php7.4-dom php7.4-simplexml php7.4-ssh2 php7.4-xml php7.4-xmlreader php7.4-curl  php7.4-exif  php7.4-ftp php7.4-gd  php7.4-iconv php7.4-imagick php7.4-json  php7.4-mbstring php7.4-posix php7.4-sockets php7.4-tokenizer

The above are the required extensions for your WordPRess installation. Having said that it’s good to have these extensions as well.

sudo apt install -y php7.4-mysqli php7.4-pdo  php7.4-sqlite3 php7.4-ctype php7.4-fileinfo php7.4-zip php7.4-exif

That’s it, you now have your PHP version installed.