How to List Compiled PHP Modules from Command Line

Thảo luận trong 'Học Quản Lý VPS' bắt đầu bởi TechBuba, 20/4/18.

  1. TechBuba Nhà Báo (Báo Đời)

    The general command is php -m; this command will give you the full list of extensions:
    Mã:
    php -m
    This command will give you an output like:
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    ereg
    exif
    fileinfo
    filter
    ftp
    gd
    gettext
    gmp
    hash
    iconv
    imap
    intl
    json
    ldap
    libxml
    mbstring
    mcrypt
    mhash
    mysql
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    recode
    Reflection
    session
    shmop
    SimpleXML
    soap
    sockets
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    wddx
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    zip
    zlib
    If you’re looking for one particular item then use a pipe and the grep command:
    Mã:
    php -m | grep -i mongo
    In the case above, I “grep’d” looking for the PHP module mongo ; replace mongowith the name of the module you’re searching for!
     
     
    : PHP Modules
  2. Bình Luận Bằng Facebook