Skip to main content

Why is not the same PHP Extensions list php -m against EasyApache 4 PHP Extensions

Comments

5 comments

  • cPRex Jurassic Moderator

    Hey there!  I believe the list would be the same *except* the command line option also includes all the things included with PHP by default that you can't remove.  For example, here is the output from my personal machine:

    # /opt/cpanel/ea-php82/root/usr/bin/php -m
    [PHP Modules]
    bcmath
    calendar
    Core
    ctype
    curl
    date
    dom
    fileinfo
    filter
    ftp
    gd
    hash
    i360
    iconv
    imap
    intl
    json
    libxml
    mbstring
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_pgsql
    pdo_sqlite
    pgsql
    Phar
    posix
    random
    readline
    Reflection
    session
    SimpleXML
    sockets
    SPL
    sqlite3
    standard
    tokenizer
    xdebug
    xml
    xmlreader
    xmlwriter
    xsl
    Zend OPcache
    zlib

    So in this list, for example, "ctype" and "date" (amongst others) aren't something you can remove from PHP as it is included by default:

    https://www.php.net/manual/en/ctype.installation.php

    If you check the list, is there anything there that is *not* a default that you're expecting to see in EasyApache?

    0
  • specialsupport

    hi there first I want to say thank you for you input, about the case, in EasyApache / PHP Extensions it show php82-pear is installed. but in /opt/cpanel/ea-php82/root/usr/bin/php -m | grep pear  is not present.

    Other, I install the Xdebug extension via PECL via whm for php82, and this time is showing in bash php -m but not in EasyApache.

    can you please clarify this how does it work and also if you can answer my others previous questions

    0
  • cPRex Jurassic Moderator

    PECL modules won't show up in the same way, that part is expected behavior.

    Pear may also not be a good example - while it is technically an extension you can install in EasyApache, Pear is really more of a separate system for PHP, like CPAN, and isn't really a "module" in the typical sense.

    I thought I did answer the previous questions but let me know if I'm missing something specific.

    0
  • specialsupport

    Hi, ok, now the question is, from what sources does EasyApache get PHP Extensions if does not look in php -m in Ubuntu ?

    others previous questions:

    How to get the list PHP Extensions  of EasyApache via api cmd ?
     Does EasyApache have a cache file store related to PHP Extensions list ?

    0
  • cPRex Jurassic Moderator

    I'm not sure I understand the EasyApache question - the extensions available come directly from the system repositories and aren't related to any commands on the server.

    if you want to see everything that is available for PHP in EasyApache on the command line, you can do this:

    yum search ea-php*

    and that will show all the EasyApache PHP packages that are available for your particular OS.

    EasyApache doesn't use any cached files.  It reads the current "profile" from the last build, which is stored in /etc/cpanel/ea4/profiles/

    0

Please sign in to leave a comment.