To install PHP 7 fpm on Alpine Linux, follow these steps:
- Update the package list:
apk update
- Install PHP 7 fpm and dependencies:
apk add php7-fpm
- Start the PHP 7 fpm service:
/etc/init.d/php-fpm7 start
- Enable the PHP 7 fpm service to start automatically on boot:
rc-update add php-fpm7 default
- 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.