Install PHP 8 on Alpine Linux

Jun 18, 2022 · 1 min read · Post a comment
Install PHP 8 on Alpine Linux

The PHP 8 installation on Alpine Linux can be achieved in a few steps. Let’s do it.


  • Alpine Linux
  • sudo access

Install PHP 8 on Alpine Linux

Step 1. Update the alpine system packages.

sudo apk update

Step 2. Install php 8.

sudo apk add php8

Step 3. Verify the installation.

php -v


PHP 8.0.20 (cli) (built: Jun 10 2022 09:06:30) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.20, Copyright (c) Zend Technologies


Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.