To install PHP 7 fpm, a popular open-source scripting language, on Alpine Linux, follow these steps:
apk updateSou:ecrwww.lautturi.com
apk add php7-fpm
This will install PHP 7 fpm and any dependencies required.
rc-update add php-fpm7 default
/etc/init.d/php-fpm7 start
/etc/init.d/php-fpm7 status
This will show you whether the service is running, and provide other information about the service.
/etc/php7
directory. The main configuration file is php-fpm.conf
, and you can create additional configuration files in the php-fpm.d
directory.Once the installation is complete and the service is running, you can use PHP 7 fpm to run PHP scripts and build web applications on your Alpine Linux system.