[pmwiki-users-fr] preg_match() error in apache.log

ooioo ooioo at free.fr
Mer 27 Mai 03:43:34 PDT 2026


Bonjour,

dans /var/log/apache2/error.log j'ai beaucoup d'erreurs

... PHP Warning:  preg_match(): Allocation of JIT memory failed, PCRE 
JIT will be disabled. This is likely caused by security restrictions. 
Either grant PHP permission to allocate executable memory, or set 
pcre.jit=0 in /var/www/html/wikihome/pmwiki.php on line 48


la ligne 48 de pmwiki.php est :       if (preg_match('!^phar://[^:]*$!', 
$FarmD)) {


mon server est un mini server intel n100 hébergé chez moi, ubuntu server 
26.04, php 8.5.4, apache2.

j'ai lancé

# systemctl cat apache2 | grep MemoryDeny
     MemoryDenyWriteExecute=yes


Ce problème est analysé ici :

https://github.com/php/php-src/issues/21450

avec les conclusions :

 1. If you use PHP with as php-fpm, (the modern way), then you're OK.
 2. If you still use mod-php, then |ini_set("pcre.jit",0);| to remove
    the warning, and accept slightly reduced performance.
 3. Or, you /could/ consider removing the systemd restriction as above.
    (MemoryDenyWriteExecute=no)



Qu'en pensez vous  ?


Cordialement,

Pierre.

-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users-fr/attachments/20260527/08a27b4a/attachment.html>


Plus d'informations sur la liste de diffusion pmwiki-users-fr