• 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 288 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, 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

Get new posts by email:

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 (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023

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 29, 2023, https://thecustomizewindows.com/2020/04/how-to-install-php-7-4-on-ubuntu-server/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

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

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

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT