php,

Install PHP 8 on Alpine Linux

Jun 18, 2022 · 1 min read · 393 views · Post a comment

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

Prerequisites

  • Alpine Linux
  • sudo privileges

Install PHP 8 on Alpine Linux

Step 1. Update Alpine system packages.

sudo apk update

Step 2. Install PHP 8.

sudo apk add php8

Step 3. Verify installation.

php -v

Output:

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

Conclusion

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