opcache directadmin plugins

MisterM

Verified User
Joined
Jul 31, 2022
Messages
382
Hello

As my subject indicates, is there a plugin that manages Opcache on the server as under plesk?
 
no, but you can make your own custom opchache.ini file if this is what you need:

First you copy file over.
cd /usr/local/directadmin/custombuild
mkdir -p custom/opcache
cp -p configure/opcache/opcache.ini custom/opcache/opcache.ini

Then make and save any changes to opcache.ini
Code:
nano custom/opcache/opcache.ini

Then run
Code:
./build opcache

Any changes in opcache setting will now survive any updates
 
Well my question would be why did DA decide to alter the default opcache values? Seems ridiculous to have to create a custom file to reinstate the default opcache values.
 
My application requires the default values so unfortunately I have to create a custom file to have the default values. Hopefully they do not interfere with DA.
 
What default values are you talking about then?
Because only these were changed (if even changed):
opcache.max_accelerated_files
opcache.revalidate_freq=0
opcache.validate_permission=1
opcache.enable_file_override=1
opcache.restrict_api=1 <-- this one was for security reasons.

Other things were not changed.
 
Unless you get the error:
Correct.
I myself didn't get any error notice, but I had to disable this setting to have my opcache GUI working in full, otherwise I would miss part of the output.
Anyway, I was just mentioning the things DA changed from default.
 
I also had that error restrict_api with Nextcloud but this "security feature" can easily be bypassed with for example cron job:

/usr/local/php83/bin/php -d memory_limit=512M -d opcache.restrict_api=""

So in theory that does nothing and users can call the api even if it's disabled in opcache.ini?
 
Back
Top