How can I enable OPcache in DirectAdmin?

tanerdgci

New member
Joined
Aug 19, 2026
Messages
1
Hi,

I'm trying to enable OPcache for my website, but I can't find the necessary settings in my DirectAdmin hosting panel.

My PHP versions available in DirectAdmin are:

  • PHP 8.3
  • PHP 8.4
  • PHP 8.5
Under PHP Settings, I can see options such as memory_limit, post_max_size, upload_max_filesize, max_execution_time, etc., but there are no OPcache-related settings such as:

  • opcache.enable
  • opcache.memory_consumption
  • opcache.max_accelerated_files
I also created a phpinfo() page to check whether OPcache is enabled. I can see an "Opcache" entry with the following credits:

Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Dmitry Stogov, Xinchen Hui
However, I cannot find Opcode Caching, opcache.enable, or any other OPcache configuration values anywhere in the phpinfo() output.

Is there a way to enable OPcache from the DirectAdmin user panel, or does this need to be enabled/configured by the hosting provider/server administrator?

Any help would be appreciated. Thanks!
 
DirectAdmin does support opcache natively:

It will be installed for all the PHP versions automatically.

However, I believe DA doesn't have opcache related settings in "PHP Settings" section. That would require dropping them a feature request or customizing the php_settings.json file. Drawback of any customization is that from that particular moment - you take up responsibility for that file to be updated, not DA staff ;]
 
Back
Top