Required PHP Packages for WordPress

Last Updated on September 21, 2023 EDT by Jordan

Content Error or Suggest an Edit

Notice a grammatical error or technical inaccuracy? Let us know; we will give you credit!

Introduction

If you’re looking for a specific list of PHP packages required to run WordPress, here’s a list and a one-liner to install.

PHP 7.3

You might be thinking why do I have PHP 7.3 packages when it’s end of life. However, sometimes it’s required for older sites that need to be upgraded to the latest version of PHP.

php7.3-bz2
php7.3-common
php7.3
php7.3-bcmath
php7.3-bz2
php7.3-cli
php7.3-common
php7.3-curl
php7.3-fpm
php7.3-gd
php7.3-gmp
php7.3-imap
php7.3-intl
php7.3-json
php7.3-mbstring
php7.3-mysql
php7.3-opcache
php7.3-readline
php7.3-recode
php7.3-soap
php7.3-xml
php7.3-xmlrpc
php7.3-zip
sudo apt-get install php7.3-bz2 php7.3-common php7.3 php7.3-bcmath php7.3-bz2 php7.3-cli php7.3-common php7.3-curl php7.3-fpm php7.3-gd  php7.3-gmp php7.3-imap php7.3-intl php7.3-json php7.3-mbstring php7.3-mysql php7.3-opcache php7.3-readline php7.3-recode php7.3-soap php7.3-xml php7.3-xmlrpc php7.3-zip

Improved One Liner and Litespeed

The following one-liner isn’t specific to a PHP version, and there is also an example for Litespeed PHP packages.

# For Remi on CentOS
yum install php74-{php-recode,php-snmp,php-pecl-apcu,php-ldap,php-pecl-memcached,php-imap,php-odbc,php-xmlrpc,php-intl,php-process,php-pecl-igbinary,php-pear,php-pecl-imagick,php-tidy,php-pspell,php-pdo,php-pecl-mcrypt,php-soap,php-mbstring,php-mysqli}

# For Ubuntu
apt-get install php74-{mbstring,mysql}

# For Ubuntu if using Litespeed
apt-get install lsphp81-{recode,snmp,pecl-apcu,ldap,pecl-memcached,imap,odbc,xmlrpc,intl,process,pecl-igbinary,pear,pecl-imagick,tidy,pspell,pdo,pecl-mcrypt,soap,mbstring,mysqli}

Changelog

  • 03-08-2023 – Changed content and structure and included an improved one liner.
0 Shares:

You May Also Like