Get the App
SLTechnology News&Howtos  ›  Development  › 

How php7 installs stomp extensions

Shulou Source: shulou.com Published: 2022-06-03 10:53:46 11月15日 Update

This article introduces php7 how to install stomp extension, the content is very detailed, interested friends can refer to, hope to be helpful to you. Php7 install stomp extension method: 1, download stomp expansion package; 2, through "yum install" for compilation and installation; 3, modify php.ini, add "stomp.so"; 4, restart PHP.

This article operating environment: linux5.9.8 system, stomp2.0.1 version, Dell G3 computer.

How does php7 install the stomp extension?

Php7 compilation and installation of stomp extension

1. Download the stomp expansion pack # cd / home#wget http://pecl.php.net/get/stomp-2.0.1.tgz2. Compilation and installation

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 where php-config and phpize are in the same directory. If the php-config path is not above, for example, I use / usr/bin/phpize above, then I use: #. / configure-- with-php-config=/usr/bin/php-config#make#make install3. Modify php.ini

Please view the ini file location through phpinfo ()

# vim / usr/local/php/lib/php.ini add line: extension= "/ usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/stomp.so" restart PHP#systemctl restart php-fpm so much about how php7 installs the stomp extension. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.

Tags: Compile content more help good same location interest boy buddy location file article method environment computer directory knowledge article system Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Shulou Technology Huawei vpn Linux