Home > Article > PHP Framework > How to run swoole in php
If there is no response when typing php --ri swoole on the command line, it means that the swoole installation was not successful. Because SWOOLE is running in the CLI mode, you cannot directly see if there is (Recommended Learning: SWOOLE Video Tutorials )
##Add swoole to the configuration filesudo vi /etc/php/7.2/cli/php.ini 添加 extension=/usr/lib/php/20170718/swoole.soIn addition, I am also used to adding configuration to the php.ini file corresponding to phpinfo. After adding the configuration to the /etc/php/7.2/fpm/php.ini file, you will see in phpinfo that the extension has been installed successfully
The above is the detailed content of How to run swoole in php. For more information, please follow other related articles on the PHP Chinese website!