PECL down or failing, what to do when pecl.php.net is unreachable

Is pecl.php.net down? Check status.php.net, install from a cached tarball or a distribution package, or switch to PIE, the official PECL replacement.

RespireCloud Team 5 min read Hosting

Key takeaways

  • Check status.php.net first: it lists pecl.php.net with its uptime and incidents, so you know whether the problem is the site or your network.
  • A distribution package (php8.4-redis and the like) or a cached .tgz installs without pecl.php.net at all. Keep the tarballs your builds need.
  • PECL is deprecated. PIE, from the PHP Foundation, is its replacement and fetches extensions from Packagist and GitHub, so a PECL outage does not stop it.
  • In CI, cache extension sources and retry with a pause. A loop of instant retries against a site that is down only makes your build slower.

When pecl install hangs or fails, the first question is whether pecl.php.net is down or whether something on your side is wrong. The second is how to get your extension installed anyway. This guide answers both, with the exact error lines we saw and commands we ran on 29 November 2026 in the official php:8.4-cli Docker image, and on Debian 12 for the packaged route.

One fact frames the rest: PECL is on its way out. On 29 November 2026 the pecl.php.net home page says "PECL is deprecated" and "PHP Installer for Extensions (PIE) is the replacement for PECL", and the PHP manual carries the same warning. An outage is a good moment to move.

Is pecl.php.net down, or is it you?

Open status.php.net. It lists pecl.php.net beside php.net, bugs.php.net, wiki.php.net, downloads.php.net and the other PHP project sites, with uptime and incidents per day. On 29 November 2026 every service showed "No problems detected", and pecl.php.net showed 99.477% uptime over 60 days: short outages do happen.

Then test from the server that fails, because a firewall, DNS or proxy problem looks the same to pecl:

curl -sS https://pecl.php.net/rest/r/redis/stable.txt

It prints the latest stable version of the extension (6.3.0 for redis that day). If this works and pecl still fails, the problem is not the site.

What the failure looks like depends on how the site is unreachable. We blocked pecl.php.net in the container's hosts file. When the connection was refused, pecl install redis printed:

Connection to `ssl://pecl.php.net:443' failed: Connection refused

and pecl channel-update pecl.php.net printed:

Channel "pecl.php.net" is not responding over https://, failed with message: Connection to `ssl://pecl.php.net:443' failed: Connection refused
Trying channel "pecl.php.net" over http:// instead
Cannot retrieve channel.xml for channel "pecl.php.net" (Connection to `pecl.php.net:80' failed: Connection refused)

When we pointed the name at an address that does not answer, pecl install redis printed nothing at all for two minutes, and curl stopped with curl: (28) Connection timed out. A silent, hanging build step is therefore also what an outage can look like.

Route 1: use a packaged extension

Most popular extensions are packaged by your distribution or by the PHP repository you use, and those packages never touch pecl.php.net. On Debian 12 with the packages.sury.org repository:

sudo apt-get install -y php8.4-cli php8.4-redis
php8.4 -m | grep -i redis

A packaged build matches its PHP version exactly and is updated with it, which is why we prefer it on servers anyway. If apt itself is failing against the Sury repository, see packages.sury.org certificate has expired.

Route 2: install from a tarball you kept

pecl download saves the release tarball. Do it while the site is up, and keep the file with your build:

mkdir -p ext-cache && cd ext-cache
pecl download redis

That gave us redis-6.3.0.tgz. With pecl.php.net blocked, the cached file still installed:

pecl install ./redis-6.3.0.tgz

It ended with install ok: channel://pecl.php.net/redis-6.3.0 and the reminder to add extension=redis.so to php.ini. The same tarball also builds by hand, which is all pecl does underneath. You need the PHP development files (phpize, php-config) and a compiler:

tar xzf redis-6.3.0.tgz
cd redis-6.3.0
phpize
./configure
make
make install

If you did not keep a tarball, many extensions publish the same source on GitHub. For phpredis, the release archive from the project's tags built the same way:

curl -fsSL -o phpredis-6.3.0.tar.gz https://github.com/phpredis/phpredis/archive/refs/tags/6.3.0.tar.gz
tar xzf phpredis-6.3.0.tar.gz
cd phpredis-6.3.0
phpize && ./configure && make && make install

pecl.php.net itself lists no mirrors, so the project's own repository is the second source to note down for each extension you depend on.

Route 3: switch to PIE

PIE (PHP Installer for Extensions) is the official replacement for PECL. It is a PHAR like Composer, needs PHP 8.1 or newer to run, and installs extensions by their Composer package name, found on packagist.org/extensions or with pie search. The latest release on 29 November 2026 was 1.6.1, published 26 November. The project's install steps for Linux are:

curl -fL --output /tmp/pie.phar https://github.com/php/pie/releases/latest/download/pie.phar \
  && gh attestation verify --owner php /tmp/pie.phar \
  && sudo mv /tmp/pie.phar /usr/local/bin/pie \
  && sudo chmod +x /usr/local/bin/pie

The gh attestation verify step checks that the file was built by the PHP project and needs the GitHub CLI; we ran the other steps. Then:

pie search redis
pie install phpredis/phpredis

With pecl.php.net still blocked, PIE found phpredis on Packagist, downloaded the source, ran phpize, configure and make, installed redis.so and enabled it ("Extension phpredis/phpredis:6.3.0 is enabled and loaded"). The extension package names differ from PECL's: redis on PECL is phpredis/phpredis in PIE, and xdebug is xdebug/xdebug. Not every PECL extension has a PIE package yet, so check yours.

PIE can also build from a folder you keep yourself, with no network at all. We tested this with the phpredis source unpacked in /root/phpredis-6.3.0 and the container cut off from the network:

pie repository:add path /root/phpredis-6.3.0
pie repository:remove packagist.org
pie install "phpredis/phpredis:*@dev"

A folder carries no release number, so PIE treats it as a development version (it reported dev-main), and Packagist has to be removed while offline or PIE stops trying to reach it. Add it back afterwards with pie repository:add composer packagist.org. The PIE usage guide also has a Docker example that mounts PIE only at build time.

Retry advice for CI and Docker builds

  • Cache, then build. Keep extension tarballs, or a built base image with the extensions already in it, so a rebuild does not depend on any outside site.
  • Retry with a pause. One or two retries a few minutes apart cover the short outages that status.php.net shows. Instant retries in a loop only make the build slower.
  • Add a time limit. Because a dead connection can hang silently, put a timeout on the install step, so the build fails clearly instead of waiting.
  • Pin versions. pecl install redis-6.3.0 or pie install phpredis/phpredis:6.3.0 builds the same thing every time, which also makes a cached copy a true substitute.
  • Plan the move to PIE. PECL is deprecated, so new build scripts should start with PIE or packages.

Where a panel fits

On a hosting server the safest choice is the packaged extension for each PHP version, kept current by apt. RespireCloud runs PHP from the distribution or the Sury repository with one PHP-FPM pool per hosting account and PHP version (websites and PHP), so extensions follow the PHP packages rather than a build from pecl.php.net.

Sources

Read on 29 November 2026: pecl.php.net, status.php.net, PHP manual, PECL downloads, the PIE repository and its usage guide, and PIE releases.

Questions

How do I check whether pecl.php.net is down?

Open status.php.net. It lists pecl.php.net next to php.net, bugs.php.net, downloads.php.net and others, with each service's uptime and the incidents of the past days.

Is PECL deprecated?

Yes. On 29 November 2026 the pecl.php.net home page and the PHP manual both say PECL is deprecated and that PIE (PHP Installer for Extensions) replaces it.

Does PIE need pecl.php.net?

No. PIE installs extensions by their Composer package name from Packagist, with the source from the project's own repository. We installed phpredis with PIE while pecl.php.net was blocked.

Can I install a PECL extension offline?

Yes, if you kept the tarball. Run pecl install ./name-version.tgz, or unpack it and build with phpize, ./configure, make and make install. Both work with no access to pecl.php.net.

Is there a PECL mirror?

pecl.php.net lists no mirrors. The usual second source is the extension's own repository on GitHub, whose release tarballs build the same way, or your distribution's packaged build.

PHPLinux serverHostingDocker
Share LinkedIn X Email

RespireCloud Team

The people who build RespireCloud

The engineers and testers behind RespireCloud write here about what the panel does, how it is built and what we found when we tried to break it. Every claim links to the feature it describes.

More posts by RespireCloud Team

See it on a real server.

The free plan covers 1 account, 3 sites and 5 mailboxes on one server, with the whole base product. Or ask us for a walk through.