How to List Compiled PHP Modules from Command Line

Cpanel/Whm License $3/mo Plesk License $10/mo Cloudlinux License $5/mo

Pre-Flight Check
  • These instructions are intended specifically for listing compiled PHP modules from the command line.
  • I’ll be working from a sxi.io Web Core Managed CentOS 6.5 server, and I’ll be logged in as root. That said, these instructions will work on any server where PECL and PEAR are installed.

The general command is php -m; this command will give you the full list of extensions:

php -m

This command will give you an output like:

bz2
calendar
Core
ctype
curl
date
ereg
exif
fileinfo
filter
ftp
gettext
gmp
hash
iconv
json
libxml
mongo
openssl
pcntl
pcre
Phar
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
tokenizer
xml
zip
zlib

If you’re looking for one particular item then use a pipe and the grep command:

php -m | grep -i mongo

In the case above, I “grep’d” looking for the PHP module mongo ; replace mongo with the name of the module you’re searching for!

Related posts

How to use scp command to securely transfer files with examples

SXI ADMIN

Pieter Wuille’s Latest Project: Making Bitcoin Harder to Lose

SXI ADMIN

7 Must-See Bitcoin Documentaries

SXI ADMIN

The DAO Ethereum Classic Refund Effort Has Been Extended

SXI ADMIN

Ben Lawsky: New York Can’t Risk Getting Bitcoin Regulation Wrong

SXI ADMIN

Bitcoin Volume is On the Move to New No-Fee Exchanges

SXI ADMIN

Ethereum for the Overwhelmed Layman

SXI ADMIN

Accenture Announces New Head of Blockchain Innovation

SXI ADMIN

Under the Microscope: Conclusions on the Costs of Bitcoin

SXI ADMIN

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More