How to install an older version of PHPUnit through PEAR?

You need to know the exact version number you wish to downgrade to. At the time of writing, the last release you’re after is 3.3.17, which can be found out by checking the appropriate PEAR channel. To downgrade to that particular version execute two commands: pear uninstall phpunit/PHPUnit pear install phpunit/PHPUnit-3.3.17

Can’t install PHPUnit via PEAR, requires PEAR Installer >= 1.9.2, can’t upgrade PEAR from 1.9.0

You basically have 2 pear installations on your machine, and the “pear upgrade” command updates the other one, not itself. I assume that the pear version you’re running has been installed via ubuntu’s apt. Find out where it has been installed with apt (on Debian/Ubuntu): $ dpkg -L php-pear … /usr/share/php/PEAR.php … /usr/bin/pear Now let’s … Read more

Installing PHP Zip Extension

This is how I installed it on my machine (ubuntu): php 7: sudo apt-get install php7.0-zip php 5: sudo apt-get install php5-zip Edit:Make sure to restart your server afterwards. sudo /etc/init.d/apache2 restart or sudo service nginx restart PS: If you are using centOS, please check above cweiske‘s answer But if you are using a Debian … Read more