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!

custom php.ini in EA4/Apache 2.4

Discussion in 'EasyApache' started by webnix, Nov 27, 2018.

  1. webnix

    webnix Member

    Joined:
    Apr 21, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    sa
    cPanel Access Level:
    Root Administrator
    Hi

    I'm trying to get custom php.ini to work using .htaccess and read various threads in the form but couldnt get it to work

    I use EA4/Apache 2.4/PHP56

    in .htaccess I added:

    ------------
    <IfModule mod_suphp.c>
    suPHP_ConfigPath /home/user/public_html
    </IfModule>
    <Files php.ini>
    order allow,deny
    deny from all
    </Files>

    SetEnv PHPRC /home/user/php.ini
    --------------

    result of /usr/local/cpanel/bin/rebuild_phpconf --current:

    DEFAULT PHP: ea-php56
    ea-php56 SAPI: suphp


    Thanks.
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,817
    Likes Received:
    275
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. webnix

    webnix Member

    Joined:
    Apr 21, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    sa
    cPanel Access Level:
    Root Administrator
    Thank you.

    checked it but really still lost, things with EA3 were very easy, but will keep trying.

    Regards.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,817
    Likes Received:
    275
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @webnix

    The biggest difference for EA3/EA4 is EA4 suPHP config path needs to point to a FULL php.ini are you doing that?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. webnix

    webnix Member

    Joined:
    Apr 21, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    sa
    cPanel Access Level:
    Root Administrator
    yes..

    my .htaccess is as you see above.. but it didnt work

    Thank you.
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,817
    Likes Received:
    275
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @webnix

    I think maybe there's a misunderstanding. I can see that the suPHP config path points to a php.ini what I'm trying to explain is that the php.ini it points to needs to be a full and complete php.ini. Before EA4 you could just add directives that were different from the global into the local php.ini
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice