close

Slick­Stack

May 2025 promo! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

how to enable PHP Opcache JIT cuz “opcache.jit” is missing in php.ini

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #24903
    Lauren
    Guest

    I have checked php.ini and these options don’t exist anywhere in PHP 8.3

    https://php.watch/versions/8.0/JIT

    opcache.jit_buffer_size=256M
    opcache.jit_debug=1
    opcache.jit=tracing
    #24904
    Jacob
    Guest
    #24905
    Samantha
    Guest

    I’m guessing it depends on how you installed PHP and your server packages. But it could be in the opcache.ini or other files depending on your configuration.

    #24906
    Hannah
    Guest

    I spun up a DigitalOcean 24.04 droplet.

    The settings are in: /etc/php/8.3/fpm/conf.d/10-opcache.ini

    ; configuration for php opcache module
    ; priority=10
    zend_extension=opcache.so
    opcache.jit=off

    The buffer setting is not there as you can see. But opcache.jit is there at least.

    #24907
    Brian
    Guest

    so, not /etc/php/8.3/mods-available/opcache.ini

    ???

    https://forum.cleavr.io/t/assistance-required-enabling-jit-on-php-8-3/1170

    #24908
    Daniel
    Guest

    Well I think

    /etc/php/8.3/fpm/conf.d/10-opcache.ini

    is just a symlink to:

    /etc/php/8.3/mods-available/opcache.ini

    so it’s the same hardfile in the end, the 2nd path is probably easier.

    #24909
    Stephen
    Guest

    The symlinks are how Debian/Ubuntu enable the PHP extensions I believe… instead of commenting or uncommenting extensions in php.ini then the symlinks are placed in the conf.d directory and that makes PHP-FPM load them (enabled).

    If you run:

    sudo phpdismod opcache

    then it will delete this symlink: /etc/php/8.3/fpm/conf.d/10-opcache.ini

    and vice versa if you run:

    sudo phpenmod opcache

    #24910
    Andrew
    Guest
Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: how to enable PHP Opcache JIT cuz “opcache.jit” is missing in php.ini

Thanks to our generous sponsors for their support!