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!

Local php.ini not working

Discussion in 'General Discussion' started by InteractM, Apr 7, 2015.

  1. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    135
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    /home/username/public_html/php.ini not taking any effect. Server running latest WHM.

    Any clue?

    Apache 2.2.29
    PHP 5.4.38
     
  2. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    135
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Got solved it following those steps


    Place the the php.ini file in /home/$USERNAME/ and then create a .htaccess file with this entry:

    <IfModule mod_suphp.c>
    suPHP_ConfigPath /home/$USERNAME
    <Files php.ini>
    order allow,deny
    deny from all
    </Files>
    </IfModule>

    You'd just need to update the $USERNAME portion to reflect the username you're working with.​

    Also be sure that PHP is set to run as suPHP not CGI/Fast-CGI
     
    madmanmachines likes this.
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,384
    Likes Received:
    1,951
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I am happy to see you were able to resolve your issue. Thank you for updating us with the outcome.
     
    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