Home > Article > Backend Development > How 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.
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
#cd /home #wget http://pecl.php.net/get/stomp-2.0.1.tgz
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
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!