sozotech

Well-Known Member
Jul 26, 2013
116
6
68
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.
 

sozotech

Well-Known Member
Jul 26, 2013
116
6
68
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.
 

sozotech

Well-Known Member
Jul 26, 2013
116
6
68
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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".