Running PHP 7.3-fpm with Nginx

Robert Long
1 min readSep 21, 2020

--

Install php7.3-fpm & nginx: https://www.cloudbooklet.com/how-to-install-nginx-php-7-3-lemp-stack-on-ubuntu-18-04-google-cloud/

install php7.3

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php7.3-fpm php7.3-common php7.3-mysql php7.3-xml php7.3-xmlrpc php7.3-curl php7.3-gd php7.3-imagick php7.3-cli php7.3-dev php7.3-imap php7.3-mbstring php7.3-opcache php7.3-soap php7.3-zip unzip -y

sudo vim /etc/php/7.3/fpm/pool.d/www.conf:

  • listen.mode = 0660
  • listen.allowed_clients = 127.0.0.1

sudo vim /etc/php/7.3/fpm/php.ini

  • upload_max_filesize = 64M
  • post_max_size = 48M
  • memory_limit = 256M
  • max_execution_time = 600
  • max_input_vars = 3000
  • max_input_time = 1000
sudo php-fpm7.3 -t 
sudo service php7.3-fpm restart

You can now test to see if PHP7.3 is running by visiting the port it runs on. For instance port 80 is the port that it usually runs on http://localhost:80/.

--

--