Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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



3.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



12.3k
Accepted
answer
edited Apr '15

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

http://forum.phalconphp.com/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.