Get the App
SLTechnology News&Howtos  ›  Development  › 

How to install php plug-ins and extensions

Shulou Source: shulou.com Published: 2022-06-03 04:12:25 10月04日 Update

This article mainly shows you "how to install php plug-ins and extensions", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to install php plug-ins and extensions" this article.

Phalcon

Source: https://phalconphp.com/zh/download

Yum install php-devel php-mysql gcc libtool pcre-develyum install wget gitcd / wdzj/source git clone-depth=1 git://github.com/phalcon/cphalcon.gitcd cphalcon/build./install is added and extended to the php.ini file: # extension=/wdzj/lnmp/php5.6.11/lib/php/extensions/no-debug-non-zts-20131226/phalcon.so cp / wdzj/lnmp/php5.6.11/lib/php.ini / wdzj/lnmp/php5.6. 11/lib/ php.ini.`date +% F` echo "extension=/wdzj/lnmp/php5.6.11/lib/php/extensions/no-debug-non-zts-20131226/phalcon.so" > > / wdzj/lnmp/php5.6.11/lib/php.ini restart php/ etc/init.d/php-fpm restart php- m | grep phalcon # # if any, Xhprof is successfully installed:

Source: https://segmentfault.com/a/1190000003509917

Wget http://pecl.php.net/get/xhprof-0.9.4.tgztar-zxvf xhprof-0.9.4.tgz cd xhprof-0.9.4cd extension/phpize./configuremakesudo make install modifies php.ini# cp / wdzj/lnmp/php5.6.11/lib/php.ini / wdzj/lnmp/php5.6.11/lib/ php.ini.`date +% F` # [xhprof] # extension=/wdzj/lnmp/php5.6.11/lib/php/extensions/no-debug -non-zts-20131226/xhprof.so# xhprof.output_dir=/tmp cp / wdzj/lnmp/php5.6.11/lib/php.ini / wdzj/lnmp/php5.6.11/lib/ php.ini.`date +% F`echo "[xhprof]" > > / wdzj/lnmp/php5.6.11/lib/php.ini echo "/ wdzj/lnmp/php5.6.11/lib/php/extensions/no-debug-non-zts-20131226/xhprof.so" > > / wdzj/lnmp/ Php5.6.11/lib/php.ini echo "xhprof.output_dir=/tmp" > > / wdzj/lnmp/php5.6.11/lib/php.ini restart php / etc/init.d/php-fpm restart php- m | grep xhprof # # install amqpwget https://github.com/alanxz/rabbitmq-c/releases/download/v0.8.0/rabbitmq-c-0.8.0.tar.gzyum install automake-ytar xf successfully if available Rabbitmq-c-0.8.0.tar.gzcd rabbitmq-c-0.8.0autoreconf-i./configure-prefix=/wdzj/lnmp/lib/rabbitmqmakemake installtar xf amqp-1.7.1.tgzcd amqp-1.7.1./configure-with-php-config=/wdzj/lnmp/php7.0.12/bin/php-config-with-amqp-with-librabbitmq-dir=/wdzj/lnmp/lib/rabbitmqmake make install

Upgrade the redis plug-in

Cd / wdzj/source/wget http://pecl.php.net/get/redis-2.2.8.tgztar-xzvf redis-2.2.8.tgzcd redis-2.2.8/wdzj/lnmp/php5.6.11/bin/phpize./configure-with-php-config=/wdzj/lnmp/php5.6.11/bin/php-configmakemake installll / wdzj/lnmp/php5.6.11/lib/php/extensions/no-debug-non-zts-20131226//etc/init.d / php-fpm reloadphp-m | grep redis above is all the content of the article "how to install php plug-ins and extensions" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Plug-ins content articles success sources learning help documentation easy to understand more organization knowledge editing industry information information channels channels upgrades research Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Technology Microsoft Shulou Tech Info Linux