PHP installs the swoole extension to support the pits encountered by openssl and wss

1. First install swoole to support wss. When
configuring./configure -enable-openssl -enable-swoole -enable-sockets -with-php-config=/usr/local/php/bin/php-config

2. After make install is installed,
add extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/swoole.so" to the php.ini file
3. Run php -m |grep swoole reports an error of
undefined symbol: bufferevent_openssl_set_allow_dirty_shutdown in Unknown on line 0
4. You need to add
extension="/usr/local/php/lib/php/extensions/no-debug- to the /etc/php.d/sockets.ini file non-zts-20131226/swoole.so",
while removing extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/swoole.so" in the php.ini file, Because the sockets.ini file is already loaded by default in the ini file

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324954741&siteId=291194637