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

keryfan

Member
Feb 21, 2018
7
2
3
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.
 

Attachments

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
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.