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!

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:
    84
    Likes Received:
    2
    Trophy Points:
    8
    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:
    44,378
    Likes Received:
    1,857
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sozotech

    sozotech Well-Known Member

    Joined:
    Jul 26, 2013
    Messages:
    84
    Likes Received:
    2
    Trophy Points:
    8
    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:
    44,378
    Likes Received:
    1,857
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. sozotech

    sozotech Well-Known Member

    Joined:
    Jul 26, 2013
    Messages:
    84
    Likes Received:
    2
    Trophy Points:
    8
    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:
    44,378
    Likes Received:
    1,857
    Trophy Points:
    363
    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".
     
    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