FPM doesn't work well with nextcloud nginx subdirectory configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php7.2 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Configured nginx configuration as follows:
Relevant error in nginx error log:
*3 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /nextcloud/login HTTP/2.0", upstream: "fastcgi:
ProblemType: Package
DistroRelease: Ubuntu 18.10
Package: php7.2-fpm 7.2.10-0ubuntu1
ProcVersionSign
Uname: Linux 4.18.0-10-generic x86_64
ApportVersion: 2.20.10-0ubuntu13
Architecture: amd64
Date: Sat Nov 10 07:49:08 2018
ErrorMessage: installed php7.2-fpm package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-11-10 (1 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
Python3Details: /usr/bin/python3.6, Python 3.6.7, python3-minimal, 3.6.7-1~18.10
PythonDetails: /usr/bin/python2.7, Python 2.7.15+, python-minimal, 2.7.15-3
RelatedPackageV
dpkg 1.19.0.5ubuntu5
apt 1.7.0
SourcePackage: php7.2
Title: package php7.2-fpm 7.2.10-0ubuntu1 failed to install/upgrade: installed php7.2-fpm package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.
tags: | removed: need-duplicate-check |
Hi JNH,
unfortunately this seems like a (common) configuration error to me.
I can't derive a good hint for you from your description, but checking search engines shows me plenty of links like:
https:/ /forum. owncloud. org/viewtopic. php?t=33005 /serverfault. com/questions/ 517190/ nginx-1- fastcgi- sent-in- stderr- primary- script- unknown /stackoverflow. com/questions/ 35261922/ debugging- the-famous- fastcgi- sent-in- stderr- primary- script- unknown- while-re
https:/
https:/
With the data provides here it is not actionable as a bug in Ubuntu since I'd not even know where to start.
Could you follow the links above and similar ones.
If you find that it is a config errors then other users might benefit from you stating what fixed it for you.
If you eventually find a bug in the actual package update this bug here and set it back to new.