Can i set higher opcache memory limit for single account

avinash.pudota

Active Member
Jan 27, 2013
44
4
58
India
cPanel Access Level
Root Administrator
Hi, is it possible to set higher opcache memory limit for single cpanel account?

I tried adding opcache.memory_consumption=256 in php.ini in cpanel account root folder and restarted litespeed, php-fpm, and HTTP server(Apache) from WHM, But it didn't work.



Thanks
 

avinash.pudota

Active Member
Jan 27, 2013
44
4
58
India
cPanel Access Level
Root Administrator
Hey there! Can you try using the cPanel >> MultiPHP INI Editor page to make this adjustment? That will ensure the correct settings are applied to the account.
Yes, i have added via MultiPHP INI Editor. Added in home directory and also in domain root folder. But it is still showing default 128MB opcache
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
13,329
2,102
363
cPanel Access Level
Root Administrator
Thanks for the additional details. When I tested this on my end the value instantly changed when I checked the PHP info page. Is it possible you have any caching in place, such as nginx, that could be causing a false reading of the PHP info page?
 

avinash.pudota

Active Member
Jan 27, 2013
44
4
58
India
cPanel Access Level
Root Administrator
Thanks for the additional details. When I tested this on my end the value instantly changed when I checked the PHP info page. Is it possible you have any caching in place, such as nginx, that could be causing a false reading of the PHP info page?
Thanks for the update and confirmation. Do i need to restart anything after updating it. I use Cloudlinux+Litespeed, no nginx.

I even tried on another cpanel account, i am still getting default 128MB, i deselected opcache extension in " PHP Selector" and it instantly disappeared from phpinfo page, so no caching issue.

I use Cloudlinux version of MultiPHP manager, does this cause issue?