<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Bonjour,</p>
<p>dans /var/log/apache2/error.log j'ai beaucoup d'erreurs</p>
<p>... 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</p>
<p><br>
</p>
<p>la ligne 48 de pmwiki.php est : if
(preg_match('!^phar://[^:]*$!', $FarmD)) {</p>
<p><br>
</p>
<p>mon server est un mini server intel n100 hébergé chez moi, ubuntu
server 26.04, php 8.5.4, apache2.</p>
<p>j'ai lancé</p>
<p># systemctl cat apache2 | grep MemoryDeny <br>
MemoryDenyWriteExecute=yes </p>
<p><br>
</p>
<p>Ce problème est analysé ici :</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/php/php-src/issues/21450">https://github.com/php/php-src/issues/21450</a></p>
<p dir="auto">avec les conclusions :</p>
<ol dir="auto">
<li>If you use PHP with as php-fpm, (the modern way), then you're
OK.</li>
<li>If you still use mod-php, then <code class="notranslate">ini_set("pcre.jit",0);</code>
to remove the warning, and accept slightly reduced performance.</li>
<li>Or, you <em>could</em> consider removing the systemd
restriction as above. (MemoryDenyWriteExecute=no)</li>
</ol>
<p><br>
</p>
<p><br>
</p>
<p>Qu'en pensez vous ?</p>
<p><br>
</p>
<p>Cordialement,</p>
<p>Pierre.</p>
<p><br>
</p>
</body>
</html>