• Home
  • WordPress
  • web Hosting
  • linux
  • mysql
  • nginx
  • apache2
  • devops

Raju Ginni

wordpress tutorials seo hosting etc

You are here: Home / nginx server tutorials (installation, configuration, performance tuning, security) / php fpm install ubuntu 20.04 nginx

php fpm install ubuntu 20.04 nginx

sudo apt install php-fpm php-mysql

 

or

sudo apt install php7.4-fpm php7.4-mysql

 

If you plan to install WordPress on this server, install the following php modules:
sudo apt install php-curl php-zip mcrypt php-gd php-mbstring php-xmlrpc php-xml php-intl php-soap php-imagick

 

or

sudo apt install php7.4-curl php7.4-zip mcrypt php7.4-gd php7.4-mbstring php7.4-xmlrpc php7.4-xml php7.4-intl php7.4-soap php7.4-imagick

 

or

sudo apt install php8-curl php8-zip mcrypt php8-gd php8-mbstring php8-xmlrpc php8-xml php8-intl php8-soap php8-imagick

Restart php-fpm for php modules to be activated:
sudo service php7.4-fpm restart

Check if it works:
sudo service php7.4-fpm status

 

Table of Contents

Toggle
  • php-fpm configuration location
  • upgrade php7.4 to 8.1 ubuntu
  • Uninstall/Remove PHP 7.x and Extensions
    • other steps:

php-fpm configuration location

 

/etc/php/7.4/fpm/www.conf   Php fpm pool configuration by default 5 childs dynamic 128*5=640MB maximum possible memory usage.

/etc/php/8.0/fpm/www.conf

 

/etc/php/7.4/fpm/ini    // resources allocation especially php_memory limit by default 128MB

 

upgrade php7.4 to 8.1 ubuntu

its better install php  8.1   and remove 7.4 or change to socket from tcp.

 

Uninstall/Remove PHP 7.x and Extensions

To uninstall PHP 7.x and all of its extensions, run the command below.

sudo apt-get purge php7.*

Install php 8

sudo apt-get update &&  sudo apt-get install php8.1

sudo apt install php8.1-common php8.1-mysql php8.1-xml php8.1-xmlrpc php8.1-curl php8.1-gd php8.1-imagick php8.1-cli php8.1-dev php8.1-imap php8.1-mbstring php8.1-opcache php8.1-soap php8.1-zip php8.1-intl -y

other steps:

install nginx ubuntu

install mysql ubuntu

nginx server tutorials (installation, configuration, performance tuning, security)

  • Letsencrypt SSL Installation on apache/Nginx ubuntu / debian wordpress
  • fix error 520 522 524 on cloudflare wordpress godaddy nginx etc
  • nginx fastcgi cache wordpress how to configure
  • install LEMP Stack on 22.04 LTS Nginx MySQL PHP fpm #wordpress #digital ocean
  • Apache vs nginx (connection handling, modules, memory usage)
  • Pagespeed module install, configure, monitor, errors ft nginx &apache
  • nginx errors (504,502, 413, unable to start, syntax errors)
  • nginx conf explained best config file performance tuning tips nginx.conf location errors tutorial
  • use nginx as reverse proxy and load balancer for apache wordpress
  • nginx rewrite rules with examples 301 redirection
  • nginx modules list (enable, disable, upgrade, install dynamic module)
  • php fpm pool manager configuration settings based on server spike high cpu wordpress
  • php fpm restart nginx ubuntu enable status page, monitor etc
  • what is TTFB & how to Reduce it (server response time) Google pagespeed
  • letsencrypt install configure on ubuntu / debian nginx
  • Top 10 tips to improve nginx server security
  • nginx performance tuning connections, buffers file descriptors
  • enable brotli compression nginx brotli vs gzip
  • nginx installation on ubuntu 20.04 LTS
  • monitor nginx request with nginx status amplify datadog new relic
  • SSL faster reduce TLS hand shake improve https performance
  • nginx rate limiting explained by location time specific url
  • datadog nginx integration installation process
  • newrelic nginx integration process and errors fix and metrics
  • php fpm seems busy fixed warning and max children reached to handle max connections / requests
  • Php fpm configuration for 1000 concurrent connections server busy max children reached
  • php fpm ondemand vs dynamic vs Static (the dynamic pool problem)
  • nginx upstream response is buffered to a temporary file
  • php fpm install ubuntu 20.04 nginx
  • install phpmyadmin ubuntu nginx 22.04
  • upgrade php fpm ubuntu nginx 7.4 to 8.2
  • nginx add last modified header (remove, php wordpress)
  • php fpm dynamic pool manager settings
  • nginx fastcgi cache purge
  • nginx open file limit connections ulimits sysctl
  • php fpm high cpu usage WordPress 4 solutions nay work for you
  • nginx buffer size for wordpress
  • Cloudflare error code 524 nginx a timeout error occured
  • server configuration for 1000 concurrent users

hi i am raju ginni, primalry i manage wordpress websites on GCP cloud platform as a cloud engineer, and create content on passionate things.
you can follow me on youtbe

© 2025 - All Rights Reserved Disclaimer & Privacy Policy