Matomo Analytics

When enabling OPcache via Ploi, Ploi will automatically set the memory consumption variable to use 512MB. At some point, you might want to increase this limit as your number of sites grow.

Luckily, changing this via Ploi is rather easy. First head over to your server and visit the PHP tab. Next press the menu button for the PHP version you'd like to change and select "Edit FPM".

A modal will open with the PHP configuration, you can use CTRL + F or CMD + F to search inside this file and search for opcache preferably. You will see a variable called memory_consumption, feel free to change this to a number to your liking. Make sure to not go over your available RAM.

OPcache memory consumption

After you've changed your OPcache memory consumption, make sure to reload the FPM worker by either restarting or reloading it.

07 October 2022 (last updated 5 months ago)

2182 views

Written by Dennis

Dennis brings over 6 years of hands-on experience in server management, specializing in optimizing web services for scalability and security.

Back to PHP


Start free trial