linuxinstallationphalcon

how to install specific phalcon framework version 2.0.?


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


Solution

  • 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