EA4 force handler to use the php.ini
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?
-
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) 0 -
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. 0 -
Hello, I believe the following thread includes the information you are seeking: How To Disable Custom PHP.INI in Easyapache 4 Thank you. 0
Please sign in to leave a comment.
Comments
3 comments