[ focal ] [ focal-updates ]
Package: php7.4-fpm (7.4.3-4ubuntu2.13) [universe]
server-side, HTML-embedded scripting language (FPM-CGI binary)
Other Packages Related to php7.4-fpm
|
|
|
|
- dep: libapparmor1 (>= 2.7.0~beta1+bzr1772) changehat AppArmor library
- dep: libargon2-1 (>= 0~20171227) memory-hard hashing function - runtime library
- dep:
libc6 (>= 2.29) GNU C Library: Shared libraries
also a virtual package provided by libc6-udeb - dep: libmagic1Recognize the type of data in a file using "magic" numbers - library
- dep: libpcre2-8-0 (>= 10.32) New Perl Compatible Regular Expression Library- 8 bit runtime files
- dep: libsodium23 (>= 1.0.14) Network communication, cryptography and signaturing library
- dep: libssl1.1 (>= 1.1.0) Secure Sockets Layer toolkit - shared libraries
- dep: libsystemd0systemd utility library
- dep: libxml2 (>= 2.8.0) GNOME XML library
- dep: mime-supportMIME files 'mime.types' & 'mailcap', and support programs
- dep: php7.4-clicommand-line interpreter for the PHP scripting language
- dep: php7.4-common (= 7.4.3-4ubuntu2.13) documentation, examples and common module for PHP
- dep: php7.4-jsonJSON module for PHP
- dep: php7.4-opcacheZend OpCache module for PHP
- dep: systemdsystem and service manager
- dep: tzdatatime zone and daylight-saving time data
- dep: ucfUpdate Configuration File(s): preserve user changes to config files
- dep: zlib1g (>= 1:1.1.4) [not armhf, i386]compression library - runtime dep: zlib1g (>= 1:1.2.3.4) [armhf, i386]
- sug: php-pearPEAR Base System
Download php7.4-fpm
Download for all available architectures1,403.7 kB | 4,758.0 kB | [list of files] |
1,276.9 kB | 4,616.0 kB | [list of files] |
1,179.2 kB | 2,753.0 kB | [list of files] |
1,439.8 kB | 4,402.0 kB | [list of files] |
1,437.4 kB | 5,620.0 kB | [list of files] |
1,213.3 kB | 4,636.0 kB | [list of files] |
- PHP.Watch
- Articles
Upgrade/Installation guide for PHP 7.4 on Ubuntu and Debian
PHP 7.4 was released today just in time for the thanks giving!
I have written posts about upgrading PHP to 7.3 last year, and for other versions in the previous years. It's time to upgrade to PHP 7.4!
SPOOKY WARNING
PHP 7.4 deprecates a bunch of features that your existing applications might be using. Although unlikely, there is a non-zero chance of the upgrade breaking your existing sites. Please make sure to make a proper backup of your server before you proceed.
1. Add ondrej/php PPA
Thanks to Ondrej, we have the PHP 7.4 builds ready at his PPA. These packages are not official builds from Ubuntu, but they are used by practically every modern Ubuntu stack, and I can't recommend them highly enough. If your wallet allows it, I suggest that you pay forward for his efforts with a donation.
Ubuntusudo add-apt-repository ppa:ondrej/php # Press enter when prompted. sudo apt-get updateDebiansudo apt install apt-transport-https lsb-release ca-certificates curl -y sudo wget -O /etc/apt/trusted.gpg.d/php.gpg //packages.sury.org/php/apt.gpg sudo sh -c 'echo "deb //packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' sudo apt update2. Get a list of current PHP packages
If you are upgrading from a previous PHP version, we will not take a note of the current PHP packages you have in your server. This list will help us to figure out the packages we should install for PHP 7.4. Note that PHP no longer bundles some less used extensions such as wddx, which you will need to compile yourself if you need it. Take a look at what's new and changing in PHP 7.4 for information on what's being removed from core.
dpkg -l | grep php | tee packages.txtThis will list all packages, filter them for those who have php in their name, and write them to packages.txt file at your current directory in addition to show them on screen.
This list will come handy to refer after we install PHP 7.4 to install the PHP 7.4 counterparts of the packages.
*Breathes heavily...
PHP 7.4 core
sudo apt install php7.4 php7.4-common php7.4-cliThis is to install the basic PHP 7.4 binaries. You will have the bare minimum PHP installation after this. Note that we did not install fpm or any other server integration package just yet
PHP 7.4 extensions
It's now time for the extensions. If you are upgrading from a previous installation, you can now take a look at the contents of your packages.txt file (cat packages.txt).
In Ondrej's PPA/Debian repo, PHP packages follow the php7.4-PACKAGE pattern. For example, mbstring is at php7.4-mbstring, and curl is at php7.4-mbstring.
To install:
sudo apt install php7.4-curl php7.4-mbstring php7.4-bz2 php7.4-readline php7.4-intlExtend the list of packages above to match to the contents of your packages.txt file, or to all packages that are desired.
Here is my recommended list of extensions:
sudo apt install php7.4-bcmath php7.4-bz2 php7.4-curl php7.4-intl php7.4-mbstring php7.4-mysql php7.4-readline php7.4-xml php7.4-zip`PHP already includes extensions such as curl, hash, ctype in core.
Web server integration
If you are planning to use PHP in a web server, you need to integrate the web server with PHP. There are two packages that you can use:
For Nginx web server, or Apache server using mod_event MPM, you need php7.4-fpm package.
If you are using PHP as an embedded Apache module (often a bad call), you will need libapache2-mod-php7.4 package. Apache users can run apachectl -V to get more information about the server
integration. If it says prefork, you need libapache2-mod-php7.4 package. php7.4-fpm otherwise.
3. Test PHP 7.4 installation.
Run php -v to make sure PHP 7.4 (CLI) is properly installed. You can run php -m to get a list of extensions enabled in your PHP 7.4 setup.
4. Remove old PHP versions
After a successful PHP 7.4 installation, you can remove the old version if desired. Unless there is a strong reason to keep the old version running and hogging your system resources, I recommend that you remove the old versions.
apt purge php7.3 php7.3-common # Change 7.3 with all versions you want to purge.... aaand that's it! You should now have a running PHP 7.4 with common packages/replacement packages of old version. Keep an eye on the error logs for potential backwards incompatible bugs in your code.
I have compiled
a list of things changed, deprecated, added, and removed in PHP 7.4.
Recent Articles on PHP.Watch
What's New in Composer 2.4
Composer 2.4 brings new `bump` and `audit` commands, shell completion support for commands and package names, automatic suggestions to install packages as `--dev` where appropriate, and several more new features and improvements.
27 Jul 2022