EA4 force handler to use the php.ini

weeming21

Active Member
Jun 13, 2015
26
0
51
Malaysia
cPanel Access Level
Root Administrator
i want to force all handler to use same php.ini in easyapache4 and prevent suPHP_ConfigPath in htaccess

so i uncomment the following line in /etc/suphp.conf:
application/x-httpd-ea-php56=/opt/cpanel/ea-php56/root/etc

but still able to use suPHP_ConfigPath in htaccess to override php.ini

then i try to change it to :
application/x-httpd-ea-php56=/opt/cpanel/ea-php56/root/etc/php.d/local.ini

it can work but error:
PHP Fatal error: Call to undefined function mysql_connect()


so how to prevent use override default php.ini by using suPHP_ConfigPath in htaccess?
 

weeming21

Active Member
Jun 13, 2015
26
0
51
Malaysia
cPanel Access Level
Root Administrator
after uncomment the line:
application/x-httpd-ea-php56=/opt/cpanel/ea-php56/root/etc

these 2 value in phpinfo become none:
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)
 

24x7server

Well-Known Member
Apr 17, 2013
1,911
97
78
India
cPanel Access Level
Root Administrator
Twitter
Hi,

PHP Fatal error: Call to undefined function mysql_connect()
--> Check the individual account for PHP.ini in it and see what it has. Compare the difference between this when loaded and one with server PHP.ini that is loaded.