vm icon indicating copy to clipboard operation
vm copied to clipboard

Migrate PHP extensions from PECL to Ubuntu packages

Open enoch85 opened this issue 2 months ago • 0 comments

Replace PECL-based installation of redis, igbinary, and smbclient with native Ubuntu packages for easier maintenance and better stability.

Changes:

  • Replace PECL redis with php8.3-redis (5.3.7+4.3.0)
  • Replace PECL igbinary with php8.3-igbinary (3.2.13)
  • Replace PECL smbclient with php8.3-smbclient (1.0.6)
  • Remove build dependencies (php-dev, libsmbclient-dev)
  • Add migration logic in update script for existing installations
  • Simplify installation code (remove manual .ini creation)

Benefits:

  • Automatic updates via apt
  • No build failures
  • Faster installation (no compilation)
  • Automatic security updates from Ubuntu Security Team
  • Reduced code complexity (-109 lines, 87% reduction)
  • Save ~50MB disk space (no build dependencies)

The update script handles migration from PECL to OS packages automatically for existing installations while maintaining backward compatibility.

Fixes: Simplifies maintenance and improves reliability

enoch85 avatar Nov 04 '25 21:11 enoch85