Skip to content

Don't overwrite php.ini with opcache directives #1

@sybrew

Description

@sybrew

The following directives are suboptimal for WordPress Multisite, but they cannot be overwritten via other means than altering /opt/cpanel/ea-php81/root/etc/php.d/10-opcache.ini:

; The OPcache shared memory storage size.
opcache.memory_consumption=128
; The amount of memory for interned strings in Mbytes.
opcache.interned_strings_buffer=8
; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 100000 are allowed.
opcache.max_accelerated_files=4000

Setting this to 1 will allow webmasters to enjoy a huge performance boost:

opcache.huge_code_pages=0

I suggest removing these impositions or otherwise rearranging this order so MultiPHP can overwrite these defaults:

Source2: php.ini
Source3: macros.php
Source4: php-fpm.conf
Source5: php-fpm-www.conf
Source6: php-fpm.service
Source7: php-fpm.logrotate
Source8: php-fpm.sysconfig
Source11: php-fpm.init
# Configuration files for some extensions
Source50: 10-opcache.ini

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions