WHM - php.ini in public_html stops default php.ini

borayeris

Member
Jan 28, 2015
22
4
53
cPanel Access Level
Root Administrator
I have a server with WHM panel. OS is CentOS. When I put a `php.ini` in public_html PHP stops reading `/usr/local/lib/php.ini`.

When I compare results of phpinfo() what I see is;

> error_log error_log error_log

becames

> error_log no value no value

How can PHP read master php.ini directives unless I add a directive in local php.ini.

PS: COPPYING MASTER php.ini CONTENT TO LOCAL php.ini IS NOT AN OPTION.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463