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.

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:
    133
    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:
    133
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page