Question

How can I revert back to PHP from HHVM.

I know that moving from php to hhvm you only need to:

$ sudo /usr/bin/update-alternatives --install /usr/bin/php php /usr/bin/hhvm 60

How about if I wanted to revert back to php?

$ php -v
HipHop VM 3.0.0 (rel)
Compiler: tags/HHVM-3.0.0-0-g59a8db46e4ebf5cfd205fadc12e27a9903fb7aae
Repo schema: 48906efe08d29a403bbe13414f32ccd256708e0b

Can is just execute a ln command to point to the original php?

Was it helpful?

Solution

According to the manual

sudo /usr/bin/update-alternatives --config php

Will ask you which version to use.

OTHER TIPS

For a non-interactive command to set the original php binary as the default, here exemplified with PHP 5:

sudo /usr/bin/update-alternatives --install /usr/bin/php php /usr/bin/php5 61

Note the priority (61) is higher than the priority given to hhvm in your original command.

simply run this command to revert to normal php

sudo /usr/share/hhvm/uninstall_fastcgi.sh
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top