php7.0.x install phalcon framework under centos7

1. Switch to the /usr/local/src directory and use the download phalcon extension

cd /usr/local/src
git clone --depth=1 git://github.com/phalcon/cphalcon.git

2. Enter the downloaded cphalcon, compile and install the phalcon box

cd /usr/local/src/cphalcon/build/php7/64bits/
/usr/local/php/bin/phpize

3. Compile

./configure --with-php-config=/usr/local/php/bin/php-config

5. Finally execute the installation command

make && make install

After the installation is complete, the phalcon.so file will be generated in /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/

6. Configure the php.ini file and add: extension=phalcon.so on a new line

7. Restart php-fpm

service php-fpm restart

View phpinfo() appears as follows:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325452811&siteId=291194637