Updating Ubuntu 14.04 Reverts Command-Line PHP to Version 7

Moto Cambodge Phnom Penh, Cambodia

Moto Cambodge Phnom Penh, Cambodia

PHP version 7 looks really cool and I can’t wait to start using it, but for now, I’m still on PHP 5.6. But every time I do an update on my Ubuntu dev box, it sets the PHP command-line to PHP version 7.

Here’s how to switch it back on Ubunut 14.04.

ln -sfn /usr/bin/php5.6 /etc/alternatives/php
Share Button