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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

EA4 force handler to use the php.ini

Discussion in 'EasyApache' started by weeming21, Apr 29, 2017.

Tags:
  1. weeming21

    weeming21 Member

    Joined:
    Jun 13, 2015
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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?
     
  2. weeming21

    weeming21 Member

    Joined:
    Jun 13, 2015
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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)
     
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,488
    Likes Received:
    60
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page