Open Swoole prebuilt packages for Ubuntu are available at Open Swoole Ubuntu PPA.
You can easily install the prebuilt Open Swoole packages from Open Swoole Ubuntu PPA if you are a user of Ubuntu or Ubuntu at Windows WSL.
apt update
apt install -y software-properties-common && add-apt-repository ppa:ondrej/php -y
apt install -y software-properties-common && add-apt-repository ppa:openswoole/ppa -y
# choose one PHP version:
#apt install -y php7.4-openswoole
#apt install -y php8.0-openswoole
apt install -y php8.1-openswoole
php --ri openswoole
apt update
apt install -y software-properties-common && add-apt-repository ppa:openswoole/ppa -y
# choose one PHP version:
#apt install -y php7.4-openswoole
#apt install -y php8.0-openswoole
apt install -y php8.1-openswoole
php --ri openswoole
Windows WSL has installed Ubuntu 20.04 LTS (Focal Fossa) as the default Linux distribution. You can install Open Swoole by following the guide of installing on Ubuntu.
You can find more details about How to install Open Swoole with Docker, PECL, Ubuntu PPA, Remi's CentOS repo and Windows at /docs/get-started/installation.
Join 4,000+ others and never miss out on new tips, tutorials, and more.