Back to Changelog

v1.0.263

Patch Released June 9, 2026

Hotfix: PHP legacy Docker shim (5.6-7.4) MySQL socket resolution for localhost connections

Improvements

2
  • legacy_php_service.go fresh install Step 3.5 now writes the MySQL socket ini immediately after writeShim, so new legacy PHP installs land with the override already in place before the first FPM pool starts.
  • Carries forward Faz A (apache mpms-shared LoadModule hook), FX1 (apache TimeoutStartSec=180 + OOMScoreAdjust=-500) and FX2 (apache health check 30x4s) from 1.0.262 unchanged.

Bug Fixes

4
  • PHP legacy Docker shim (PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4) sites with DB_HOST=localhost now resolve the MySQL socket correctly inside the container. Previously, mysqli and PDO fell back to /var/lib/mysql/mysql.sock which does not exist in the shim container, causing a 500 on every DB request despite healthy credentials.
  • postApplyFixes writes /opt/panelica/services/php/X.Y/etc/conf.d/panelica-mysql-socket.ini for each installed legacy PHP version, setting mysqli.default_socket and pdo_mysql.default_socket to the host MySQL socket path. Write is idempotent (byte-equal skip) and atomic (tmp + rename).
  • ELF check ensures native PHP 8.x installs are not touched: the first four bytes of bin/php are inspected; an ELF header means a real native binary and the function returns immediately without writing any .ini file.
  • Per-user PHP-FPM units for affected legacy versions are restarted after the ini write. Versions with no pool.d directory are silently skipped.
See the Demo