Commit Graph
100 Commits
Author SHA1 Message Date
chrisandClaude Opus 5.5 7b6bb066dc Add security patches for PHP 5.6.40.
From omega8cc/boa (5.x-dev, aegir/patches/php-sec):
php-5.6.40-openssl3-pkey-export.patch, php-5.6.40-round-places-overflow.patch,
php-5.6.40-sury-105.patch, php-5.6.40-xlts-1.patch, php-5.6.40-xlts-2.patch.

sury-105 contains the 5.6 backport of the CVE-2026-109618/109619 fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:13:05 +01:00
chrisandClaude Opus 5.5 e73064d2b0 mod_php_install.sh: apply php-8.1.34-xlts-2.patch for PHP 8.1.34.
Applied after php-8.1.34-cve-2026-129291.patch and before
php-8.1.34-sury-9-re2c-generated.patch. The whole sequence applies
without fuzz or offset to php-8.1.34. xlts-2 changes no generated
files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:50:34 +01:00
chrisandClaude Opus 5.5 1e4b13746e Add security patch php-8.1.34-xlts-2.patch.
Raw patch from omega8cc/boa (5.x-dev, aegir/patches/php-sec).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:50:34 +01:00
chrisandClaude Opus 5.5 06bea0b16f mod_php_install.sh: apply security patches for PHP 7.4.33.
Apply for PHP 7.4.33, in this order: cve-2026-109618-109619, sury-31,
xlts-1, xlts-2, sury-31-re2c-generated. All apply without fuzz, also
on top of PHP-7.4-OpenSSL-3.0-compatibility.patch. The generated files
are marked as up to date afterwards, as for 8.0.30 and 8.1.34.

Tested on web-05 (Debian 13): build, install and php-fpm start OK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:47:38 +01:00
chrisandClaude Opus 5.5 6a3b03fd9f Add security patches for PHP 7.4.33.
Raw patches from omega8cc/boa (5.x-dev, aegir/patches/php-sec):

  php-7.4.33-cve-2026-109618-109619.patch
  php-7.4.33-sury-31.patch
  php-7.4.33-xlts-1.patch
  php-7.4.33-xlts-2.patch

php-7.4.33-sury-31-re2c-generated.patch (own patch) applies the
pdo_sql_parser.re and url_scanner_ex.re hunks of sury-31 to the
generated *.c files, so the fixes are built without re2c.
(ext/date/lib/parse_iso_intervals.c already contains the fix of the
parse_iso_intervals.re hunk.)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:47:37 +01:00
chrisandClaude Opus 5.5 f19ee454d1 mod_php_install.sh: apply security patches for PHP 8.0.30.
Generalize the PHP 8.1.34 patch block into a per-version patch list
and apply for PHP 8.0.30, in this order: cve-2026-109618-109619,
sury-25, xlts-1, xlts-2, sury-25-re2c-generated (CVE before sury,
otherwise hunk #4 of main/rfc1867.c fails). All apply without fuzz,
also on top of PHP-8.0-OpenSSL-3.0-compatibility.patch. The generated
files are marked as up to date afterwards, as for 8.1.34.

The HTML page check now only looks at the first non-empty line:
php-8.0.30-sury-25.patch contains "<html>" in test files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 14:07:31 +01:00
chrisandClaude Opus 5.5 837decf4c0 Add security patches for PHP 8.0.30.
Raw patches from omega8cc/boa (5.x-dev, aegir/patches/php-sec):

  php-8.0.30-cve-2026-109618-109619.patch
  php-8.0.30-sury-25.patch
  php-8.0.30-xlts-1.patch
  php-8.0.30-xlts-2.patch   (19 November 2026 release, incl. GH-24046)

php-8.0.30-sury-25-re2c-generated.patch (own patch) applies the
pdo_sql_parser.re and url_scanner_ex.re hunks of sury-25 to the
generated *.c files, so the fixes are built without re2c.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 14:07:31 +01:00
chrisandClaude Opus 5.5 9ca1942a50 mod_php_install.sh: fix PHP 8.1.34 build after applying security patches.
The patches change sources of generated files (Zend/zend_vm_def.h,
*.re) together with the generated files. Patching left the sources
newer, so make re-ran zend_vm_gen.php with the host's php binary,
producing a broken Zend/zend_vm_opcodes.h ("operator '==' has no left
operand"). Touch the generated files after patching so they are taken
as up to date.

sury-9 changes pdo_sql_parser.re and url_scanner_ex.re without the
generated *.c files, so these fixes needed re2c to be built. Add
php-8.1.34-sury-9-re2c-generated.patch, which applies the same changes
to the generated *.c files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 13:00:40 +01:00
chrisandClaude Opus 5.5 985d073613 mod_php_install.sh: apply security patches for PHP 8.1.34.
Apply php-8.1.34-cve-2026-109618-109619.patch, php-8.1.34-sury-9.patch
and php-8.1.34-cve-2026-129291.patch (in this order - otherwise a hunk
of main/rfc1867.c fails) when installing PHP 8.1.34. Abort if a patch
is missing, is an HTML page or does not apply.

Replace the three patch files, which were saved GitHub HTML pages, by
the raw patches from omega8cc/boa (aegir/patches/php-sec).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:52:08 +01:00
chris ed7e9a202c Add patches fpr PHP version 8.1 2026-11-20 12:39:55 +01:00
chrisandClaude Opus 5.5 6858b46155 Remove .claude/settings.json from repository and ignore it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:37:44 +01:00
chris a40be63dcd Add settings.json to define permissions for Bash commands 2026-11-15 15:34:40 +01:00
chrisandClaude Opus 5.5 3245050742 mod_php_install.sh: apply php2shell security patch for PHP 5.6.
Add 'php-5.6-enhanced-universal.patch' (CVE-2026-109618 / CVE-2026-109619 /
CVE-2026-115560). It is applied after the other php-5.6-*.patch files; on top
of 'php-5.6-session.patch' hunk #4 of ext/session/session.c applies with
fuzz 2, which is expected (verified with 5.6.40). A failure aborts the
installation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:31:02 +01:00
chris 3ee99d7ffa Add script 'config-php-fpm.sh' setting some parameters fpr tuning up php backend. 2026-07-01 14:08:55 +02:00
chris 622c2effb0 Merge branch 'master' of https://git.oopen.de/install/php 2026-07-01 13:59:00 +02:00
chris e6371187fe mod_php_install.sh: Adjust some parameters vor tuning up php bacvkend. 2026-07-01 13:58:15 +02:00
chris 59aabb3fc1 Add fix_ldap_ini.sh script to comment out 'extension=ldap.so' in PHP ini files 2026-07-01 13:47:28 +02:00
chris 36d9a3bc10 Merge branch 'master' of https://git.oopen.de/install/php 2026-05-01 23:36:47 +02:00
chris 51179f6d88 mod_php_install.sh: remove 'extension=ldap.so'. 2026-05-01 23:36:08 +02:00
chris 81a4edca47 mod_php_install.sh: fix compiler error on php 8.1 debian 13. 2026-04-28 14:56:25 +02:00
chris e549bffa55 mod_php_install.sh: in der PHP-CLI-Konfiguration validate_timestamps einschalten - 'opcache.validate_timestamps=1'. 2026-04-10 11:11:52 +02:00
chris 94f54ec594 Merge branch 'master' of git.oopen.de:install/php 2026-03-27 15:44:28 +01:00
chris 9446459840 mod_php_install.sh: fix spacing issue in man.conf conditional check 2026-03-27 15:44:22 +01:00
chris a5a4a18749 mod_php_install.sh: fix error aktivating opcache on php version 8.5 (and greater?) 2026-03-27 11:09:46 +01:00
chris 4b2d7262c6 Add patch files for php 5.6 installation. 2026-03-10 23:45:13 +01:00
chris cf814e9adf mod_php_install.sh: add support for php 8.0 on debian 13 systems. 2026-03-05 14:21:51 +01:00
chris 90bf4da168 mod_php_install.sh: some changes to support php 7.4 and other changes. 2026-03-05 01:57:18 +01:00
chris 221371c23b remove 'install-php56.sh'. 2026-03-04 15:23:50 +01:00
chris 918dcc2912 mod_php_install.sh: Simplify if then else clauses. 2026-03-04 15:23:26 +01:00
chris 6ddcf9154a Add support for version 5.6 on debian 13 . 2026-03-04 12:40:38 +01:00
chris eea51922cf mod_php_install.sh: fix list of required compiler packages. 2026-01-23 13:35:56 +01:00
chris 6c5907b733 organize required debain packages 2026-01-23 10:44:43 +01:00
chris cc95df6201 mod_php_install.sh: make the PECL installation of 'imap' a little more robust. 2026-01-23 00:55:20 +01:00
chris 72b07de2d9 mod_php_install.sh: install pecl imap extension, if '/usr/local/imap/lib/libc-client.a' is present. 2026-01-23 00:28:07 +01:00
chris fc1cf962bd mod_php_install.sh: add channel update for 'pear.php.net' befor installing pear extensions. 2026-01-10 01:53:07 +01:00
chris e062c4cb79 mod_php_install.sh: instll peck plugin imap also if debian package 'libc-client2007f-dev' ist installed. 2025-12-25 18:16:25 +01:00
chris b854d10517 fix error installing imap pecl plugin. 2025-12-24 01:57:08 +01:00
chris cbbcdf429c mod_php_install.sh: add support for debian 13 (trixie). 2025-12-15 01:20:35 +01:00
chris a019d35520 mod_php-5.3_debian-9_install.sh,mod_php-5.4_debian-9_install.sh: fix Systemd support if debian version 13 or newer. 2025-12-15 01:19:28 +01:00
chris 7ef0f03346 mod_php_install.sh: imap extension is moved to PECL since version 8.4 2025-11-28 01:50:51 +01:00
chris c9659f15c9 Add 'DOC/README.install-openssl-1.1.1'. 2024-06-28 10:15:22 +02:00
chris ec717642fc mod_php_install.sh: set default max_execution_time to 360s. 2024-05-06 00:37:06 +02:00
chris 0d94d23fe3 mod_php_install.sh: add timeout parameter. 2024-04-26 00:24:40 +02:00
chris f9f247aa1d mod_php_install.sh: change DEFAULT_FPM_POOL_MAX_CHILDREN to 256. 2024-04-21 16:08:02 +02:00
chris 4d545d07ce mod_php_install.sh: incease DEFAULT_OPCACHE_INTERNED_STRINGS_BUFFER to '48'. 2024-02-14 17:06:07 +01:00
chris dae3f913bb mod_php_install.sh: show existing FPM pool definitions in summary. 2024-01-03 14:11:09 +01:00
chris 7b17ac342a mod_php_install.sh: finish support fo debian 12 (bookworm). 2023-10-26 21:26:39 +02:00
chris 3959e37839 mod_php_install.sh: add support for version 7.1 at debian 12 (bookworm). 2023-10-25 02:27:38 +02:00
chris 7addd36d29 mod_php_install.sh: fix error installing python 2.7 2023-10-25 00:50:13 +02:00
chris 79b141353b mod_php_install.sh: support php 5.6 at debian 12 (bookworm). 2023-10-24 22:29:16 +02:00
chris 942b735491 mod_php_install.sh: add mod_php support for versions 8.x 2023-07-05 16:23:42 +02:00
chris cf88af8874 mod_php_install.sh: fix error setting parameter opcache.error_log. 2023-06-23 16:28:20 +02:00
chris c7ea9f5ebb Add Patch to compile PHP (7.4, 8.0?) againmst openssl 3.0. 2023-06-18 10:14:45 +02:00
chris de34143a3b mod_php_install.sh: add support for adjusting apcu values. 2023-04-29 01:58:26 +02:00
chris 5c3249b12c mod_php_install.sh: add support for setting 'zlib.output_compression' and 'opcache.consistency_checks' at install time. Change some default values for 'opcache'. 2023-04-25 01:58:35 +02:00
chris 4f4b3d67be mod_php_install.sh: replace PHP socket, in case of php update.. 2023-03-17 17:27:51 +01:00
chris 040965430e mod_php_install.sh: some moinor changes in script output.. 2023-03-14 09:50:54 +01:00
chris 0b23a6c72a If ssl connection to php.net fails, install and trust (temporary) the remote certificate. 2023-03-12 18:15:05 +01:00
chris 7b47f3ca12 Add readme file 'README.create-run-dir'. 2023-03-12 18:12:56 +01:00
chris 4530f68ccf Add some documentations. 2023-03-12 18:09:46 +01:00
chris 034eeb7c53 Add version of mcrypt to 1.0.5 in case of 'manual' install.. 2023-01-11 23:28:59 +01:00
chris 33b9a36802 Merge branch 'master' of https://git.oopen.de/install/php 2022-10-17 12:32:01 +02:00
chris c27530a7b7 /mod_php_install.sh: some minor changes. 2022-10-17 12:31:40 +02:00
chris a5f8c8cc36 mod_php_install.sh: fix typo. 2022-09-21 14:43:14 +02:00
chris 2beb96fdcd mod_php_install.sh: Support configuration of opcache parameters. 2022-07-06 18:31:41 +02:00
chris bad2958744 mod_php_install.sh: some changes in script output. 2022-07-04 21:19:29 +02:00
chris a813cd3362 mod_php_install.sh: change some opchache values to match nextcloud's recommendations. 2022-06-30 00:10:23 +02:00
chris 083811b4da mod_php_install.sh: some minor changes to the script output. 2022-06-22 12:57:34 +02:00
chris 584fa9c867 Adjust opcache parameter. 2022-02-21 13:54:39 +01:00
chris f1360fbd86 mod_php_install.sh: change mcrypt version to 1.0.4 in case of manual install. 2022-02-09 02:20:21 +01:00
chris 24962478bf mod_php_install.sh: some minor changes. 2022-02-04 02:38:52 +01:00
chris 90a9e9bdb5 mod_php_install.sh: some minor changes. 2022-02-04 02:32:39 +01:00
chris b2bfd94a3d mod_php_install.sh: some minor changes. 2022-02-04 02:10:06 +01:00
chris 7ec0bbcae8 mod_php_install.sh: some monor changes in script output. 2021-12-24 01:19:00 +01:00
chris 707d6f6918 mod_php_install.sh:remove option 'copytruncate' from ogrotation script - its not needed.. 2021-12-20 18:10:19 +01:00
chris b1f876950d mod_php_install.sh: add 'copytruncate' option to logrotate file. 2021-12-20 17:38:06 +01:00
chris b5da46920a mod_php_install.sh: add 'icu4c'-libraries to ld.so.conf.d directory if php version 5.6 will be installed. 2021-10-17 18:33:43 +02:00
chris 25e7ebf704 mod_php_install.sh: fix error installing php 7.x on debian os version greater then 10. 2021-10-12 12:57:24 +02:00
chris cb2b31bec1 mod_php_install.sh: pass some environment variables like 'PATH'. 2021-10-08 03:03:51 +02:00
chris 7d9c9671a4 Support of setting additional FPM Pool Definitions also if a configiration file from prior installation exists and will be taken. 2021-09-14 18:28:51 +02:00
chris 509e05bd43 Support user settings of some PHP Pool Definitions. 2021-09-13 17:51:28 +02:00
chris 4d4ad60004 mod_php_install.sh: add support for 'sodium'. 2021-09-01 00:53:10 +02:00
chris 2e6b3c1e0c mod_php_install.sh: remove 'libcroco3-dev' from required debian packages. 2021-08-13 20:16:34 +02:00
chris 5b92d6ee02 mod_php_install.sh: fix error determin MagickWand-config file. 2021-07-05 22:55:43 +02:00
chris cb17addc17 mod_php_install.sh: change default libxml2 version in case og php 5.6 installation. 2021-05-15 00:59:24 +02:00
chris 16774823c8 organize_php_error_logs.sh: support PHP version 8.0 2021-02-17 00:12:45 +01:00
chris ca93e36302 mod_php_install.sh: some minor changes.. 2021-02-16 22:35:35 +01:00
chris 14e54993b6 mod_php_install.sh: add support for PHP version 8.0.2. 2021-02-16 22:08:04 +01:00
chris 29be287591 Add script organize_php_error_logs.sh 2021-01-17 02:10:24 +01:00
chris c24917b0e6 mod_php_install.sh: fix error in creating logrotation file. 2021-01-16 03:02:49 +01:00
chris 0090c77130 mod_php_install.sh: change location of file 'php_errors.log'. 2021-01-16 02:28:03 +01:00
chris f87dc94d71 mod_php_install.sh: update versions of freetype and libxml2 in case of extra installations.. 2020-12-12 13:45:11 +01:00
chris acbbc0ace4 Some minor changes. 2020-08-08 19:24:30 +02:00
chris 2fd8b44296 mod_php_install.sh: update pool definitions. 2020-05-29 16:19:49 +02:00
chris 25e8857013 mod_php_install.sh: add support for xmlrpc extension. 2020-04-09 00:02:12 +02:00
chris bd0808bbff Merge branch 'master' of https://git.oopen.de/install/php 2020-02-18 00:48:22 +01:00
chris d2b7dfa4a4 Backup old version 'mod_php_install.sh'. 2020-02-18 00:47:27 +01:00
chris d23aae685c mod_php_install.sh: add support for version 7.4 2020-02-17 15:32:40 +01:00
chris 4a363157ca Add Readme file for upgrading to version 7.4 2019-12-04 16:09:34 +01:00
chris fbad17420b mod_php_install.sh: suport php 7.0 at debian 10 2019-10-20 23:26:24 +02:00