search
HomeBackend DevelopmentPHP7How to install stomp extension in php7

How to install the stomp extension in php7: 1. Download the stomp extension package; 2. Compile and install through "yum install"; 3. Modify php.ini and add "stomp.so"; 4. Restart PHP. Can.

How to install stomp extension in php7

The operating environment of this article: linux5.9.8 system, stomp2.0.1 version, Dell G3 computer.

How to install the stomp extension in php7?

Compile and install the stomp extension in php7

1. Download the stomp extension package

#cd /home
#wget http://pecl.php.net/get/stomp-2.0.1.tgz

2. Compile and install

phpize reports Cannot find autoconf. Please install autoconf and then execute yum install m4 and yum install autoconf

#tar zxf stomp-2.0.1.tgz
#cd stomp-2.0.1
#/usr/local/php/bin/phpize
#./configure --with-php-config=/usr/local/php/bin/php-config
其中 php-config 和 phpize 所在的目录是相同的,

如果php-config路径不是上面,比如上面我用 /usr/bin/phpize,则在这一步我用:
# ./configure --with-php-config=/usr/bin/php-config
#make
#make install

3. Modify php. ini

Please check the ini file location through phpinfo()

#vim /usr/local/php/lib/php.ini
增加行:
extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/stomp.so"
重启PHP
#systemctl restart php-fpm

Recommended study: "PHP7 Tutorial"

The above is the detailed content of How to install stomp extension in php7. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools