Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

php extensions support on EA4

Discussion in 'EasyApache' started by Rakaris Bakaris, Oct 5, 2017.

  1. Rakaris Bakaris

    Rakaris Bakaris Well-Known Member

    Joined:
    Jan 8, 2015
    Messages:
    45
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello!
    The documentation states that php ereg extension is supported, but I cant see it on EA4 and phpinfo. How to enable it for php56?
    Also is it supported and how to remove php extensions sysvmsg, sysvsem, sysvshm?
    Thanks!
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,484
    Likes Received:
    60
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The "ereg" PHP extension is installed by default in PHP version 5.6 as part of the php-common RPM:

    Code:
    # repoquery -q --whatprovides 'ea-php56-php-ereg' | sort -V | tail -1
    ea-php56-php-common-0:5.6.31-3.3.7.cpanel.x86_64
    The other extensions you listed are installed by default as part of the php-process RPM:

    Code:
    # repoquery -q --whatprovides 'ea-php56-php-sysvmsg' | sort -V | tail -1
    ea-php56-php-process-0:5.6.31-3.3.7.cpanel.x86_64
    # repoquery -q --whatprovides 'ea-php56-php-sysvsem' | sort -V | tail -1
    ea-php56-php-process-0:5.6.31-3.3.7.cpanel.x86_64
    # repoquery -q --whatprovides 'ea-php56-php-sysvshm' | sort -V | tail -1
    ea-php56-php-process-0:5.6.31-3.3.7.cpanel.x86_64
    Thank you.
     
  4. Rakaris Bakaris

    Rakaris Bakaris Well-Known Member

    Joined:
    Jan 8, 2015
    Messages:
    45
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello!
    thank you, but why I can t see it on phpinfo() page? Is this means that egrep support persists but it's not visible on phpinfo()?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I see a section for "ereg" in my phpinfo file on a test account account assigned PHP 5.6:

    In your PHPINFO file, look for the "Loaded Configuration File" value and verify it shows "/opt/cpanel/ea-php56/root/etc/php.ini". Also, run the "yum list ea-php56-php-common" command to verify the RPM is installed.

    Thank you.
     
  6. Rakaris Bakaris

    Rakaris Bakaris Well-Known Member

    Joined:
    Jan 8, 2015
    Messages:
    45
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello!
    Loaded php.ini: /opt/cpanel/ea-php70/root/etc/php.ini
    Installed Packages
    ea-php70-php-common.x86_64 7.0.24-1.1.2.cpanel @EA4
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @Rakaris Bakaris,

    You mentioned using PHP 5.6 in your original post, and ereg is in-fact supported in that version. However, the ereg function is removed as of PHP 7.0:

    PHP: ereg - Manual

    You'd need to use "WHM >> MultiPHP Manager" to configure the account to use PHP 5.6 if you want to use that function.

    Thank you.
     
Loading...

Share This Page