How to update opcache.memory_consumption value?

Created:

2017-08-08 09:07:47 UTC

Modified:

2017-08-08 13:08:23 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to update opcache.memory_consumption value?

Question

How to increase/decrease opcache.memory_consumption value?

Answer

- for Plesk:

1. Login to server via SSH.
2. Update/add the directive in /usr/local/psa/admin/conf/php.ini file.
3. Restart Plesk services to apply changes:

# systemctl restart sw-engine
# systemctl restart sw-cp-server

- for a domain:

1. Go to Plesk > Domains > example.com > PHP Settings > Additional configuration directives.
2. Add the directive like below: 

opcache.memory_consumption = 64 

3. Click Apply.

The default value is 64Mb.

Additional information

opcache.memory_consumption

Have more questions? Submit a request
Please sign in to leave a comment.