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!

SOLVED [CloudLinux Case EA4D-84] ea-php72 not loading additional ini files

Discussion in 'EasyApache' started by keryfan, Sep 25, 2018.

  1. keryfan

    keryfan Registered

    Joined:
    Feb 21, 2018
    Messages:
    4
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Ukraine
    cPanel Access Level:
    Root Administrator
    Hello,

    recently we've noticed bug with php 7.2 on our servers.

    If you have php.ini in domain directory and php version set to 7.2, additional .ini files not loading and some functions stop working.

    Errors like Call to undefined function mysql_connect().


    php.ini in that directory contains only this content

    Code:
    ; cPanel-generated php ini directives, do not edit
    ; Manual editing of this file may result in unexpected behavior.
    ; To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
    ; For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
    
    display_errors = On
    max_execution_time = 30
    max_input_time = 60
    max_input_vars = 1000
    memory_limit = 128M
    post_max_size = 50M
    session.gc_maxlifetime = 1440
    session.save_path = "/var/cpanel/php/sessions/ea-php72"
    upload_max_filesize = 50M
    zlib.output_compression = Off
    

    What could be wrong with server configuration?

    I atached screenshots with output from php.ini.
     

    Attached Files:

  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,197
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @keryfan,

    Can you verify if this server uses CloudLinux?

    If so, note that CloudLinux is aware of the issue (the CloudLinux case number is EA4D-84). You can monitor the CloudLinux blog to see when the solution is published:

    CloudLinux - Main | New template

    In the meantime, the temporary workaround is to set lsapi_phprc to "No" in the /etc/apache2/conf.d/lsapi.conf file.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. keryfan

    keryfan Registered

    Joined:
    Feb 21, 2018
    Messages:
    4
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Ukraine
    cPanel Access Level:
    Root Administrator
    Thank's a lot.
     
    cPanelMichael likes this.
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,197
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, CloudLinux has published the solution to this issue to their beta EA4 packages:

    EA4D-84: fixed parsing of the additional config files when PHPRC environment variable is set.

    You can monitor the CloudLinux blog to see when the solution is published to their stable EA4 packages:

    CloudLinux Blog

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,197
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, the solution was published to the CloudLinux stable EA4 repo today:

    EasyApache 4 updated

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice