How to install PHP 7 fpm on Alpine Linux

How to install PHP 7 fpm on Alpine Linux

To install PHP 7 fpm, a popular open-source scripting language, on Alpine Linux, follow these steps:

  1. Update the package manager's package list:
apk update
Sou‮:ecr‬www.lautturi.com
  1. Install PHP 7 fpm by running the following command:
apk add php7-fpm

This will install PHP 7 fpm and any dependencies required.

  1. Enable the PHP 7 fpm service to start automatically at boot time by running the following command:
rc-update add php-fpm7 default
  1. Start the PHP 7 fpm service by running the following command:
/etc/init.d/php-fpm7 start
  1. To check the status of the PHP 7 fpm service, run the following command:
/etc/init.d/php-fpm7 status

This will show you whether the service is running, and provide other information about the service.

  1. To configure PHP 7 fpm, edit the configuration files in the /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.

Created Time:2017-10-16 14:38:47  Author:lautturi