We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

How to downgrade phalcon 2 to 1.3

Hi i want to downgrade my phalconphp extension to older version from 2.0.0 to 1.3.4 so want can i do for downgrade?

i'm using ubuntu & i installed phalcon from apt-get install php5-phalcon



5.8k
edited Apr '15

Is ubunty actually using version 2 of phalcon already?

Well, anyway, you can check what version you can install checking the package:

$ apt-cache show php5-phalcon

and you will see the version. If the version is actually one that you don't want, and the one that you want is not available, then you can just compile the package.

Follow the compiling instruction in the github site of cphalcon. It's pretty straight forward. You can just do a checkout to the branch that you want install and compile from there



16.0k
Accepted
answer
edited Apr '15

take a look at the last post and please do a search before posting

https://forum.phalcon.io/discussion/6488/where-are-13-packages-in-ppaphalconstable

sudo apt-get remove php5-phalcon
sudo ppa-purge ppa:phalcon/stable
sudo apt-add-repository ppa:phalcon/legacy
sudo apt-get install php5-phalcon
sudo service apache2 restart
edited Apr '15

Thanks

its works

but install package should be php5-phalcon not php-phalcon

If you don't want to remove the stable repo (on ubuntu / apt-get):

sudo apt-add-repository ppa:phalcon/legacy
sudo apt-get install php5-phalcon=1.3.4-ppa1~trusty

This will downgrade you.