vm
vm copied to clipboard
Migrate PHP extensions from PECL to Ubuntu packages
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