OpCache - Change Memory to 256
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.
-
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.ini0 -
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? [root@server2019 ~]# 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 0 -
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: df -kh
quota -sv0 -
I think it is updating its just some customers it cant update before they may have reached their inode limits? Just a possibility 0
Please sign in to leave a comment.
Comments
4 comments