Skip to main content

Turn off XCache on single domain

Comments

5 comments

  • cPanelMichael
    Hello :) You can copy the system php.ini file to the account's home directory. EX: 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": vi /home/username/php.ini
    Ensure you modify the necessary "XCache" values to "Off". Thank you.
    0
  • sozotech
    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
    0
  • cPanelMichael
    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: 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.
    0
  • sozotech
    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
    0
  • cPanelMichael
    [quote="sozotech, post: 1470841">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
    Yes, that is the value you would use in the .htaccess if you wanted to utilize "/home/username/php.ini".
    0

Please sign in to leave a comment.