Public bug reported:

1. Problem:

PHP (8.5.3) started giving me this warning:

"Allocation of JIT memory failed, PCRE JIT will be disabled"

This message arises from any call to preg_match().


2. Root cause:

This is caused by the MemoryDenyWriteExecute=yes  option being turned on
in the Apache systemd service file.

The bug occurs in Resolute, and it did not occur in 25.04 (I never had a
25.10 instance to test).


3. Solution:

sudo systemctl edit apache2

add the lines

  [Service]
  MemoryDenyWriteExecute=no


sudo service apache2 restart

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: apache2 2.4.66-2ubuntu1
ProcVersionSignature: Ubuntu 6.19.0-9.9-generic 6.19.5
Uname: Linux 6.19.0-9-generic x86_64
Apache2ConfdDirListing: False
Apache2Modules:
 AH00558: apache2: Could not reliably determine the server's fully qualified 
domain name, using 127.0.1.1. Set the 'ServerName' directive globally to 
suppress this message
 httpd (pid 396646) already running
ApportVersion: 2.33.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: MATE
Date: Sun Mar 15 01:29:41 2026
InstallationDate: Installed on 2024-04-29 (684 days ago)
InstallationMedia: Ubuntu-MATE 24.04 LTS "Noble Numbat" - Release amd64 
(20240424)
SourcePackage: apache2
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.apache2.sites-available.000-default.conf: [modified]
mtime.conffile..etc.apache2.sites-available.000-default.conf: 
2024-06-13T23:07:58.764283

** Affects: apache2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug jit pcre resolute systemd

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2144455

Title:
  Apache's  systemd option "MemoryDenyWriteExecute" breaks PHP JIT

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/2144455/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to