How to install dh-php on Ubuntu
debhelper add-on to handle PHP PECL extensions
Availability
Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.
| Distro | Channel | all | Version |
|---|---|---|---|
| Ubuntu 24.04 (noble) | Base | 5.22+zzgps3 |
Description
dh-php provides a debhelper sequence add-on named 'php' and the dh_php command. The dh_php command adds the appropriate code to the postinst, prerm and postrm maint scripts to properly enable/disable PHP PECL extensions for all available PHP SAPIs.
Built for Ubuntu.
Install
dh-php on Ubuntu 24.04 (noble)
curl -fsSL https://extras.getpagespeed.com/release-latest.deb -o /tmp/getpagespeed-release.deb sudo apt-get install -y /tmp/getpagespeed-release.deb rm /tmp/getpagespeed-release.deb sudo apt-get update sudo apt-get install -y dh-php
Package downloads require an active GetPageSpeed subscription — one repository for dh-php and thousands more packages for Ubuntu.
Subscribe — from $10/moOther releases and channels: use the setup wizard.
Frequently asked questions
How do I install dh-php on Ubuntu?
Add the GetPageSpeed repository, then install the dh-php package with your system package manager.
Which Ubuntu versions is dh-php available for?
dh-php is available for Ubuntu 24.04.