Linux centos under php to install the cphalcon extension method

  • 2020-05-24 06:42:24
  • OfStack

Description:

Operating system: CentOS

php installation directory: /usr/local/php

php. ini configuration file path: / usr/local/php/etc/php ini

1. Install cphalcon

cd /usr/local/src

git clone git: / / github com/phalcon/cphalcon git # need to install the installation git package yum install git

cd usr/local src/cphalcon bits # 64 / build/php5 / select corresponding php version catalogue

/usr/local/php/bin/phpize

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

make

make install

2. Configure php to support cphalcon

vi usr/local php/etc/php ini # edit the configuration file, in the last 1 line add the following content

add

extension=phalcon.so

: wq! # save exit

3. Restart php-fpm

service php-fpm restart

On the phpinfo page, you can see the options for cphalcon, indicating that the installation was successful.

At this point, the cphalcon extension tutorial for installing php under Linux is complete.


Related articles: