php, aws, amazon linux 2,

Install PHP-FPM on Amazon Linux 2

Nov 11, 2022 · 1 min read · Post a comment

Depending on your PHP version you can install FPM easily and configure it with Nginx to speed up your site performance. Let’s see how to install PHP-FPM on Amazon Linux 2.

Prerequisites

  • Amazon Linux 2
  • sudo privileges
  • PHP installed

Install FPM on Amazon Linux 2

Step 1. Update the packages.

sudo yum update

Step 2. Install PHP-FPM.

sudo yum install php-fpm

Step 3. Start the FPM service.

sudo systemctl start php-fpm

Step 4. To enable the FPM service, run:

sudo systemctl enable php-fpm

Conclusion

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