how to install specific phalcon framework version

2019-05-31 16:29发布

i have a application which is working fine with version 2.0

for that i am unable to install phalcon version 2.0 only latest version version 3.2.2 is installing..

so how can i install v 2.0..??

Installation source: https://phalconphp.com/en/download/linux

curl -s "https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh" | sudo bash
sudo apt-get install php5-phalcon
sudo apt-add-repository ppa:phalcon(2.0x)/legacy

This following similar question is not helped me out from the issue. How to install phalcon version 2

2条回答
贼婆χ
2楼-- · 2019-05-31 17:30

First, here is the official 2.0 install docs Installation Phalcon 2.0 The docs you posted are for our current version which is compatible with php7 I am not sure how that will work with 2.0.x

The only amendment I would make to How to install phalcon version 2 would be to use the release from github like phalcon-2.0.13-stable that is the easiest way to select a major version so if 2.0.13 isn't appropriate you can likely find the version you need on github. Phalcon Releases

查看更多
姐就是有狂的资本
3楼-- · 2019-05-31 17:33

Well don't see last package version for phalcon 2.0.x on packagecloud or launchpad so you simply need to use git:

git clone https://github.com/phalcon/cphalcon
cd cphalcon
git checkout 2.0.x
cd build
sudo ./install

Add to php.ini - extension=phalcon.so

查看更多
登录 后发表回答