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.

Turn off XCache on single domain

Discussion in 'General Discussion' started by sozotech, Sep 23, 2013.

  1. sozotech

    sozotech Well-Known Member

    Joined:
    Jul 26, 2013
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Is it possible to disable XCache on a single domain? The server in question is using suPHP so trying to disable XCache via .htaccess is not working.

    Thanks,
    Eric
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can copy the system php.ini file to the account's home directory. EX:

    Code:
    cp /usr/local/lib/php.ini /home/username/
    Then, modify the php.ini within the account to disable the XCache entries. You can modify the file with a utility such as "vi":

    Code:
    vi /home/username/php.ini
    Ensure you modify the necessary "XCache" values to "Off".

    Thank you.
     
  3. sozotech

    sozotech Well-Known Member

    Joined:
    Jul 26, 2013
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Putting the php.ini in the /home/username directory does not work for me. If I move it to the public_html it works. Should it work just in the users home directory?

    Thanks,
    Eric
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, it's fine to place it in the public_html directory. If you want to define a specific alternate location, add this entry to the .htaccess file in your public_html or a subdirectory:

    Code:
    suPHP_ConfigPath /home/username/public_html
    Note, the above entry assumes you want to use the php.ini file from the public_html directory.

    Thank you.
     
  5. sozotech

    sozotech Well-Known Member

    Joined:
    Jul 26, 2013
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Maybe I am not understanding. Would I not want the htaccess to read as follows if I want to put it in the home directory?

    suPHP_ConfigPath /home/username

    Eric
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, that is the value you would use in the .htaccess if you wanted to utilize "/home/username/php.ini".
     
Loading...

Share This Page