cmswebsolutions

Registered
Nov 26, 2019
2
0
1
Aberdeen
cPanel Access Level
Root Administrator
Hi

I have been searching around trying to find a resolution to this question.

We have OpCache running on a new server with CloudLinux, mod_lsapi and EA 7.3 and testing the configuration as follows, which is an example - PHP 7.3.11 with OpCache 7.3.11 it appears to be working fine. Certainly this website is considerably quicker than it was.

So the question is how do we increase the memory or the buffering. No matter what we try it remains 128m

We even tried experimenting with .htaccess and whilst we can switch off the caching on a per account basis, adding the OpCache configurations in caused a 500 server error.

Can anyone advise where Opcache is getting these settings from? Because for come clients we would like to individually tweak.

Many thanks in advance.
 
Last edited by a moderator:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hello,

Are you using the php selector with CloudLinux as well? If so you'll need to edit the opcache configuration in /opt/alt/php73/etc/php.d.all/opcache.ini then rebuild the cage with: cagefsctl --rebuild-alt-php-ini

If you need it to change it for a specific user:
su -s /bin/bash USERNAME
cd /etc/cl.php.d/alt-phpXX/ (where XX is the PHP version)
Add the parameters to custom.ini
 

cmswebsolutions

Registered
Nov 26, 2019
2
0
1
Aberdeen
cPanel Access Level
Root Administrator
Thanks for the reply and I am using the PHP Selector with Cloud Linux.

I tried both suggestions and still the "tweaked" settings are not being implemented.

Or at least they are not according to PHP 7.3.11 with OpCache 7.3.11

The memory should have changed to 256.

Not sure if this is the problem, but when I ran the command to rebuild CageFS, I had these error messages?

[[email protected] ~]# cagefsctl --rebuild-alt-php-ini
sda3: warning, user block quota exceeded.
sda3: warning, user block quota exceeded.
sda3: warning, user block quota exceeded.
sda3: warning, user block quota exceeded.
sda3: warning, user block quota exceeded.
sda3: warning, user block quota exceeded.
sda3: warning, user block quota exceeded.
sda3: warning, user block quota exceeded.
sda3: warning, user block quota exceeded.
sda3: warning, user block quota exceeded.
sda3: warning, user block quota exceeded.

Any clues as to what might be causing this error message?

SDA3 is the main drive, which is 1.8T (RAID10) and is only 25% utilised
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hello,


It seems like you might have a couple of issues occurring here, if the cage can't update then the changes you're making won't be reflected.

What's the output of the following:

Code:
df -kh
Code:
quota -sv