Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu 20 - Install Swoole PHP

Steps

Install PHP 8.0 through Ondrej's PPA.

Run the following to install and enable Swoole PHP.

sudo apt update \
  && sudo apt install php-swoole -y \
  && sudo phpenmod swoole

Check Version

You can check the swoole version you have installed by running:

php -r 'echo SWOOLE_VERSION . PHP_EOL;'

At the time of writing this post, the version that will be installed is 4.6.7.

References

Last updated: 26th June 2021
First published: 26th June 2021