Skip to content
TrySitePrice

How to install PHP 7 fpm on Alpine Linux

Best/Tutorial

To install PHP 7 fpm on Alpine Linux, follow these steps:

  1. Update the package list:

apk update

  1. Install PHP 7 fpm and dependencies:

apk add php7-fpm

  1. Start the PHP 7 fpm service:

/etc/init.d/php-fpm7 start

  1. Enable the PHP 7 fpm service to start automatically on boot:

rc-update add php-fpm7 default

  1. Verify that PHP 7 fpm is installed and running:

php-fpm7 -v

That's it! PHP 7 fpm is now installed and running on your Alpine Linux system. Note that you may also need to configure Nginx to work with PHP fpm.