KNOWNHOST WIKI

User Tools

Site Tools


control-panels:directadmin:how-to-edit-opcache-settings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

control-panels:directadmin:how-to-edit-opcache-settings [2019/09/30 11:08]
Karson N. created
control-panels:directadmin:how-to-edit-opcache-settings [2020/06/01 11:16] (current)
Karson N.
Line 2: Line 2:
  
 You may find that you need to increase the opcache.memory_consumption or some other setting for Opcache.  To do so, you will need to create a custom configuration file with the settings you'd like to build Opcache with that DirectAdmin's CustomBuild will recognize. Then, copy the original opcache.ini file over to this custom/ directory. You may find that you need to increase the opcache.memory_consumption or some other setting for Opcache.  To do so, you will need to create a custom configuration file with the settings you'd like to build Opcache with that DirectAdmin's CustomBuild will recognize. Then, copy the original opcache.ini file over to this custom/ directory.
 +<code>
   cd /usr/local/directadmin/custombuild   cd /usr/local/directadmin/custombuild
   mkdir -p custom/opcache   mkdir -p custom/opcache
   cp -p configure/opcache/opcache.ini custom/opcache/opcache.ini   cp -p configure/opcache/opcache.ini custom/opcache/opcache.ini
 +</code>
  
 Now, edit the custom/opcache.ini with your desired changes.  Now, edit the custom/opcache.ini with your desired changes. 
 +<code>
   nano custom/opcache/opcache.ini   nano custom/opcache/opcache.ini
   ./build opcache   ./build opcache
 +</code>
  
 Opcache should now be configured with the settings desired and these changes will survive subsequent CustomBuild builds.   Opcache should now be configured with the settings desired and these changes will survive subsequent CustomBuild builds.  
  
 That's it! :) That's it! :)
control-panels/directadmin/how-to-edit-opcache-settings.txt · Last modified: 2020/06/01 11:16 by Karson N.