title: Fastcgi params configuring owncloud with nginx
body: <p>So there's <a href="https://pestmeester.nl/index.html" rel="nofollow noreferrer">a site</a> and I'm configuring my Ubuntu server. I've done it once about 2 years ago but a lot has changed a lot since then. For example, there's php8.0 now and owncloud doesn't support it yet. Anyway, I have php7.4 and I'm trying to configure my <code>/etc/nginx/sites-available/mydomainname.com</code> config file (of course with my real domain name) but I can't make it work. I've tried so much fastcgi parameter example and none of them worked. <a href="https://pestmeester.nl/index.html#8.3" rel="nofollow noreferrer">The site I mentioned has also an example</a> and it worked 2 years ago but now it doesn't. I get the same error: FastCGI sent in stderr: <code>&quot;Primary script unknown&quot; while reading response header from upstream</code>.</p>
  <p>Can anybody help me? What's wrong with this config?</p>
  <pre><code>location ~ [^/].php(/|$) {
          fastcgi_split_path_info ^(.+?.php)(/.*)$;
          fastcgi_pass unix:/var/run/php7.4-fpm.sock;
          fastcgi_index index.php;
          include fastcgi_params;
      }
  </code></pre>