To increase opcache.memory_consumption or to make other configurations for OPcache, create a custom configuration file with the settings that you want OPcache to use and that CustomBuild in DirectAdmin will recognize.

cd /usr/local/directadmin/custombuild
mkdir -p custom/opcache
cp -p configure/opcache/opcache.ini custom/opcache/opcache.ini

Edit custom/opcache.ini with the desired changes.

nano custom/opcache/opcache.ini
./build opcache

OPcache should now be configured with the desired settings and these changes will remain valid for later versions of CustomBuild.

 

If you encounter any problems in applying the above instructions please contact us. HostX offers the fastest KVM VPS servers and can offer you specialized assistance in DirectAdmin administration.

Was this answer helpful? 0 Users Found This Useful (0 Votes)