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.
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

SublimeText3 Chinese version
Chinese version, very easy to use

Dreamweaver CS6
Visual web development tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

WebStorm Mac version
Useful JavaScript development tools
