Skip to content

Instantly share code, notes, and snippets.

@michael34435
Created March 6, 2016 13:09
Show Gist options
  • Save michael34435/c682271492a03f0af686 to your computer and use it in GitHub Desktop.
Save michael34435/c682271492a03f0af686 to your computer and use it in GitHub Desktop.
phalcon in php7 install script(tested by centos 7)
rpm -Uvh http://download.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
yum-config-manager --enable remi
yum-config-manager --enable remi-php70
yum update
yum install -y make gcc re2c file git
yum install -y --enablerepo=remi-php70 --skip-broken php php-devel php-common php-pdo php-mbstring php-xml
yum remove -y php-pecl-igbinary
yum remove -y php-pecl-memcache
git clone https://github.com/phalcon/zephir.git
find zephir -type f -print0 | xargs -0 sed -i 's/sudo //g'
cd zephir
./install -c
cd ..
git clone https://github.com/phalcon/cphalcon.git
cd cphalcon
git checkout 2.1.x
zephir fullclean
zephir build --backend=ZendEngine3
@syedzac
Copy link

syedzac commented Apr 16, 2019

Maybe you need to update script, I tried this on centos7 but not working, most of the packages already moved 404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment