How to Install PHP on OpenSUSE 15.2/15.1

last updated in Categories , ,

In this tutorial, you will learn how to install PHP 7.4 on OpenSUSE Linux 15.2/15.1 and configure it with Nginx. PHP is server-side and very popular for various PHP frameworks such as Symfony, Laravel, and open source apps like MediaWiki, WordPress, Nextcloud, and more.

This entry is 3 of 3 in the OpenSUSE Linux LEMP Stack Tutorial series. Keep reading the rest of the series:

  1. Install and use Nginx on OpenSUSE Linux
  2. Secure Nginx with Let’s Encrypt on OpenSUSE Linux
  3. Install PHP on OpenSUSE Linux 15.2/15.1

Nginx upstream sent too big header while reading response header from upstream

last updated in Categories , , ,

Nginx upstream sent too big header while reading response header from upstream

I am getting the following error and my app stops working:
    2020/07/12 14:32:03 [error] 45625#45625: *10918 upstream sent too big header while reading response header from upstream, client: 139.xxx.yyy.zzz, server: www.nixcraft.com, request: “POST /app/mg/posts HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php-fpm.sock:”, host: “www.nixcraft.com”, referrer: “https://www.nixcraft.com/mg/admin/index.app”
How do I fix this error for Nginx web server running on Linux or Unix-like systems?