On servers using PHP 5.6.38, PHP 7.2.11, and PHP 7.3.0RC2, when I run pecl upgrade, I get the error message:
pear.php.net is using a unsupported protocol – This should never happen.
upgrade failed
I looked at my previous blog post and found that, back then (2014), the solution was to run: pear upgrade –force xml_util.
After some experimentation, I found a solution. Here is the step-by-step I used to fix it:
apachectl stop
rm -r /usr/local/lib/php
make install
apachectl start
pear update-channels
pear upgrade-all
pear upgrade xml_rpc2
pear upgrade --force xml_util
pecl upgrade
And now, it’s fine! Woohoo!
Happy Slacking,
Stu…