Home > Backend Development > PHP7 > How to install stomp extension in php7

How to install stomp extension in php7

藏色散人
Release: 2023-02-18 08:28:01
Original
2987 people have browsed it

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
Copy after login

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template