Skip to content

Instantly share code, notes, and snippets.

@n9ti
Forked from mlocher/install_phalcon.sh
Last active August 29, 2015 14:21
Show Gist options
  • Save n9ti/46c726249b55638bd328 to your computer and use it in GitHub Desktop.
Save n9ti/46c726249b55638bd328 to your computer and use it in GitHub Desktop.
#!/bin/bash
PHP_VERSION="5.6"
PHALCON_VERSION="1.3.2"
PWD=`pwd`
cd ~
rm -rf ~/cphalcon
phpenv global $PHP_VERSION
git clone git://github.com/phalcon/cphalcon.git
cd cphalcon
git checkout "phalcon-v${PHALCON_VERSION}"
cd build
./install
echo "extension=phalcon.so" >> ~/.phpenv/versions/${PHP_VERSION}/etc/php.ini
cd $PWD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment