• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » How To Install PHP 7.4 on Ubuntu Server

By Abhishek Ghosh April 14, 2020 6:25 pm Updated on April 14, 2020

How To Install PHP 7.4 on Ubuntu Server

Advertisement

PHP 7.4 is a new minor version of PHP with some breaking changes. While installing PHP 7.4 for my new website abhishekghosh.com I noticed that some packages do need careful installation. Overall our main guide on how to install PHP 7.2 on Ubuntu 18.04 LTS server should work fine for setup of a LAMP server for installation of PHP-MySQL web software like WordPress. The new features are written on the official website of PHP and also they have created a list of expected, known incompatibilities. You’ll notice there are changes with CURL and MySQLi. I noticed some issue with automatic update of a paid/premium WordPress plugin. Expect some unforeseen update issue with some paid/premium WordPress plugin/themes which still have not updated their PHP files. PHP 7.4 is intended to make PHP faster and more reliable. A handful of WordPress themes and plugins may not work until the respective developers update them. Very few WordPress plugins and themes actually can take the advantages of PHP 7.4 at this moment. So, it is practical to install or upgrade PHP to 7.4 in a dev environment.

How To Install PHP 7-4 on Ubuntu Server

We use Ondřej Surý’s PPA for PHP and Apache2. Run these commands :

Vim
1
2
3
4
5
6
apt update -y
apt upgrade -y
sudo apt install -y software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update -y
apt upgrade -y

Thereafter, you can install PHP 7.4 with all common extensions with a single command :

Advertisement

---

Vim
1
sudo apt install php7.4

Or if you are sure what extensions required to be installed then run some command like :

Vim
1
apt-get install php7.4-cli php7.4-fpm php7.4-bcmath php7.4-curl php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-sqlite3 php7.4-xml php7.4-zip

After installation is complete, run php -v to check the version. You can search modules for PHP 7.4 by running :

Vim
1
sudo apt-cache search php* | grep 7.4

APCu makes codes faster by caching. Alternate method of installing APCu (example is for PHP 7.4) :

Vim
1
sudo apt-get install php7.4-apcu

Unlike before, it is working out of the box after installation.

The image used in this article is created by Zend.

Tagged With install php 7 4 ubuntu

This Article Has Been Shared 762 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How To Install PHP 7.4 on Ubuntu Server

  • Upgrading Ubuntu 14.04 to Latest Nginx to Support HTTP2

    Here Are Steps For Upgrading Ubuntu 14.04 to Latest Nginx to Support HTTP2 With Troubleshooting Error. Nginx Has No Support For this Upgrade.

  • How To Generate Let’s Encrypt ECC SSL (ECDSA) Certificate

    Few Costly Paid SSL Have Support For ECC. Let’s Encrypt Supports For Free. Here is How To Generate Let’s Encrypt ECC SSL (ECDSA) Certificate.

  • How To Install SBT and Scala on Ubuntu Server

    Here Are The Steps on How To Install SBT and Scala on Ubuntu Server. sbt is a build tool for Scala and Java projects Like Apache Maven, Apache Ant.

  • How to Install Flextype on Apache : Modern, Flat-File, PHP Powered CMS

    Flextype CMS is Written in PHP, a Flat-File CMS (needs no database). Here is How To Install Flextype on Ubuntu 18.04

  • Review of 101Domain For E-commerce

    In a past article on ICANN’s new domain name transfer policy, we mentioned 101domain as one of a few other service providers. After that article our readers asked us to know more about their total set of services. What attracted us to 101domain is their insightful blog on technical matters around domains, SSL, and corporate […]

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Domain-Driven Design (DDD)? January 23, 2021
  • Top 10 Anti Hacking Software for Microsoft Windows January 22, 2021
  • What is Software Modernization? January 21, 2021
  • Cloud Computing : Cybersecurity Tips for Small Business Owners January 20, 2021
  • Arduino : Independently Blink Multiple LED January 18, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "How To Install PHP 7.4 on Ubuntu Server," in The Customize Windows, April 14, 2020, January 23, 2021, https://thecustomizewindows.com/2020/04/how-to-install-php-7-4-on-ubuntu-server/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2021 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy