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

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch