OPCache preload with ISPConfig

Discussion in 'Installation/Configuration' started by natanfelles, Mar 7, 2025.

  1. natanfelles

    natanfelles New Member

    Hello! I would like to know how to configure opcache.preload in the Web Domain options of ISPConfig 3.2?

    I tried adding these lines in the "Custom php.ini settings" field but it doesn't work:

    opcache.preload=/var/www/clients/client1/web2/private/preload.php
    opcache.preload_user=web2

    If I edit the file /etc/php/8.4/fpm/php.ini it works. But I would like to enable it only per sites and not globally.

    Thank you very much!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Some php.ini settings can not be configured in the php-fpm pool file. If you added it in custom php.ini settings and it did not work, then these settings ca not be configured per site. It might be possible that you use the settings in PHP fastcgi mode though.
     

Share This Page